public class EntityManagerSessionImpl extends Object implements EntityManagerSession
Constructor and Description |
---|
EntityManagerSessionImpl(javax.persistence.EntityManagerFactory entityManagerFactory,
boolean handleTransactions,
boolean closeEntityManager) |
EntityManagerSessionImpl(javax.persistence.EntityManagerFactory entityManagerFactory,
javax.persistence.EntityManager entityManager,
boolean handleTransactions,
boolean closeEntityManager) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
javax.persistence.EntityManager |
getEntityManager()
Get an
EntityManager instance associated with this session. |
protected boolean |
isTransactionActive() |
public EntityManagerSessionImpl(javax.persistence.EntityManagerFactory entityManagerFactory, javax.persistence.EntityManager entityManager, boolean handleTransactions, boolean closeEntityManager)
public EntityManagerSessionImpl(javax.persistence.EntityManagerFactory entityManagerFactory, boolean handleTransactions, boolean closeEntityManager)
protected boolean isTransactionActive()
public javax.persistence.EntityManager getEntityManager()
EntityManagerSession
EntityManager
instance associated with this session.getEntityManager
in interface EntityManagerSession
Copyright © 2015. All rights reserved.