Package org.activiti.spring
Class SpringEntityManagerSessionFactory
- java.lang.Object
-
- org.activiti.spring.SpringEntityManagerSessionFactory
-
- All Implemented Interfaces:
org.activiti.engine.impl.interceptor.SessionFactory
public class SpringEntityManagerSessionFactory extends java.lang.Object implements org.activiti.engine.impl.interceptor.SessionFactorySession Factory forEntityManagerSession.Must be used when the
EntityManagerFactoryis managed by Spring. This implementation will retrieve theEntityManagerbound to the thread by Spring in case a transaction already started.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleancloseEntityManagerprotected javax.persistence.EntityManagerFactoryentityManagerFactoryprotected booleanhandleTransactions
-
Constructor Summary
Constructors Constructor Description SpringEntityManagerSessionFactory(java.lang.Object entityManagerFactory, boolean handleTransactions, boolean closeEntityManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>getSessionType()org.activiti.engine.impl.interceptor.SessionopenSession(org.activiti.engine.impl.interceptor.CommandContext commandContext)
-
-
-
Method Detail
-
getSessionType
public java.lang.Class<?> getSessionType()
- Specified by:
getSessionTypein interfaceorg.activiti.engine.impl.interceptor.SessionFactory
-
openSession
public org.activiti.engine.impl.interceptor.Session openSession(org.activiti.engine.impl.interceptor.CommandContext commandContext)
- Specified by:
openSessionin interfaceorg.activiti.engine.impl.interceptor.SessionFactory
-
-