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