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 java.lang.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(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()
Session
openSession()
-
-
-
Method Detail
-
getSessionType
public java.lang.Class<?> getSessionType()
- Specified by:
getSessionType
in interfaceSessionFactory
-
openSession
public Session openSession()
- Specified by:
openSession
in interfaceSessionFactory
-
-