Package org.activiti.spring
Class SpringEntityManagerSessionFactory
java.lang.Object
org.activiti.spring.SpringEntityManagerSessionFactory
- All Implemented Interfaces:
org.activiti.engine.impl.interceptor.SessionFactory
public class SpringEntityManagerSessionFactory
extends Object
implements org.activiti.engine.impl.interceptor.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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected jakarta.persistence.EntityManagerFactoryprotected boolean -
Constructor Summary
ConstructorsConstructorDescriptionSpringEntityManagerSessionFactory(Object entityManagerFactory, boolean handleTransactions, boolean closeEntityManager) -
Method Summary
Modifier and TypeMethodDescriptionClass<?> org.activiti.engine.impl.interceptor.SessionopenSession(org.activiti.engine.impl.interceptor.CommandContext commandContext)
-
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:
getSessionTypein interfaceorg.activiti.engine.impl.interceptor.SessionFactory
-
openSession
public org.activiti.engine.impl.interceptor.Session openSession(org.activiti.engine.impl.interceptor.CommandContext commandContext) - Specified by:
openSessionin interfaceorg.activiti.engine.impl.interceptor.SessionFactory
-