Class EntityManagerSessionImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.variable.serializer.jpa.EntityManagerSessionImpl
-
- All Implemented Interfaces:
Session
,EntityManagerSession
public class EntityManagerSessionImpl extends Object implements EntityManagerSession
- Author:
- Frederik Heremans, Joram Barrez
-
-
Constructor Summary
Constructors Constructor Description EntityManagerSessionImpl(javax.persistence.EntityManagerFactory entityManagerFactory, boolean handleTransactions, boolean closeEntityManager)
EntityManagerSessionImpl(javax.persistence.EntityManagerFactory entityManagerFactory, javax.persistence.EntityManager entityManager, boolean handleTransactions, boolean closeEntityManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
flush()
javax.persistence.EntityManager
getEntityManager()
Get anEntityManager
instance associated with this session.protected boolean
isTransactionActive()
-
-
-
Constructor Detail
-
EntityManagerSessionImpl
public EntityManagerSessionImpl(javax.persistence.EntityManagerFactory entityManagerFactory, javax.persistence.EntityManager entityManager, boolean handleTransactions, boolean closeEntityManager)
-
EntityManagerSessionImpl
public EntityManagerSessionImpl(javax.persistence.EntityManagerFactory entityManagerFactory, boolean handleTransactions, boolean closeEntityManager)
-
-
Method Detail
-
isTransactionActive
protected boolean isTransactionActive()
-
getEntityManager
public javax.persistence.EntityManager getEntityManager()
Description copied from interface:EntityManagerSession
Get anEntityManager
instance associated with this session.- Specified by:
getEntityManager
in interfaceEntityManagerSession
-
-