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