org.camunda.bpm.engine.impl.variable.serializer.jpa
Class EntityManagerSessionImpl

java.lang.Object
  extended by 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
EntityManagerSessionImpl(javax.persistence.EntityManagerFactory entityManagerFactory, boolean handleTransactions, boolean closeEntityManager)
           
EntityManagerSessionImpl(javax.persistence.EntityManagerFactory entityManagerFactory, javax.persistence.EntityManager entityManager, boolean handleTransactions, boolean closeEntityManager)
           
 
Method Summary
 void close()
           
 void flush()
           
 javax.persistence.EntityManager getEntityManager()
          Get an EntityManager instance associated with this session.
protected  boolean isTransactionActive()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

flush

public void flush()
Specified by:
flush in interface Session

isTransactionActive

protected boolean isTransactionActive()

close

public void close()
Specified by:
close in interface Session

getEntityManager

public javax.persistence.EntityManager getEntityManager()
Description copied from interface: EntityManagerSession
Get an EntityManager instance associated with this session.

Specified by:
getEntityManager in interface EntityManagerSession


Copyright © 2016 camunda services GmbH. All rights reserved.