Package org.camunda.bpm.engine.spring
Class SpringEntityManagerSessionFactory
- java.lang.Object
-
- org.camunda.bpm.engine.spring.SpringEntityManagerSessionFactory
-
- All Implemented Interfaces:
SessionFactory
public class SpringEntityManagerSessionFactory extends Object implements SessionFactory
Session Factory forEntityManagerSession
. Must be used when theEntityManagerFactory
is managed by Spring. This implementation will retrieve theEntityManager
bound to the thread by Spring in case a transaction already started.- Author:
- Joram Barrez
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
closeEntityManager
protected javax.persistence.EntityManagerFactory
entityManagerFactory
protected boolean
handleTransactions
-
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()
Session
openSession()
-
-
-
Constructor Detail
-
SpringEntityManagerSessionFactory
public SpringEntityManagerSessionFactory(Object entityManagerFactory, boolean handleTransactions, boolean closeEntityManager)
-
-
Method Detail
-
getSessionType
public Class<?> getSessionType()
- Specified by:
getSessionType
in interfaceSessionFactory
-
openSession
public Session openSession()
- Specified by:
openSession
in interfaceSessionFactory
-
-