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 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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
entityManagerFactory
protected javax.persistence.EntityManagerFactory entityManagerFactory
handleTransactions
protected boolean handleTransactions
closeEntityManager
protected boolean closeEntityManager
SpringEntityManagerSessionFactory
public SpringEntityManagerSessionFactory(Object entityManagerFactory,
boolean handleTransactions,
boolean closeEntityManager)
getSessionType
public Class<?> getSessionType()
- Specified by:
getSessionType in interface SessionFactory
openSession
public Session openSession()
- Specified by:
openSession in interface SessionFactory
Copyright © 2017 camunda services GmbH. All rights reserved.