Package org.flowable.spring
Class SpringEntityManagerSessionFactory
java.lang.Object
org.flowable.spring.SpringEntityManagerSessionFactory
- All Implemented Interfaces:
SessionFactory
Session Factory for
EntityManagerSession
.
Must be used when the EntityManagerFactory
is managed by Spring. This implementation will retrieve the EntityManager
bound to the thread by Spring in case a transaction already
started.
- Author:
- Joram Barrez
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected jakarta.persistence.EntityManagerFactory
protected boolean
-
Constructor Summary
ConstructorsConstructorDescriptionSpringEntityManagerSessionFactory
(Object entityManagerFactory, boolean handleTransactions, boolean closeEntityManager) -
Method Summary
-
Field Details
-
entityManagerFactory
protected jakarta.persistence.EntityManagerFactory entityManagerFactory -
handleTransactions
protected boolean handleTransactions -
closeEntityManager
protected boolean closeEntityManager
-
-
Constructor Details
-
SpringEntityManagerSessionFactory
public SpringEntityManagerSessionFactory(Object entityManagerFactory, boolean handleTransactions, boolean closeEntityManager)
-
-
Method Details
-
getSessionType
- Specified by:
getSessionType
in interfaceSessionFactory
-
openSession
- Specified by:
openSession
in interfaceSessionFactory
-