public class EntityManagerImpl extends AbstractEntityManagerImpl
EntityManager.AbstractEntityManagerImpl.TupleBuilderTransformerHibernateEntityManagerImplementor.Options| Modifier and Type | Field and Description |
|---|---|
protected boolean |
discardOnClose |
protected boolean |
open |
protected Session |
session |
persistenceContextType, tx| Constructor and Description |
|---|
EntityManagerImpl(EntityManagerFactoryImpl entityManagerFactory,
javax.persistence.PersistenceContextType pcType,
javax.persistence.spi.PersistenceUnitTransactionType transactionType,
boolean discardOnClose,
Class sessionInterceptorClass,
Map properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected Session |
getRawSession()
Return a Session (even if the entity manager is closed).
|
Session |
getSession()
return a Session
|
boolean |
isOpen() |
clear, contains, convert, convert, convert, createNamedQuery, createNamedQuery, createNativeQuery, createNativeQuery, createNativeQuery, createQuery, createQuery, createQuery, createQuery, detach, determineAppropriateLocalCacheMode, find, find, find, find, flush, getCriteriaBuilder, getDelegate, getEntityManagerFactory, getFactory, getFlushMode, getLockMode, getLockRequest, getMetamodel, getProperties, getReference, getTransaction, handlePersistenceException, isTransactionInProgress, joinTransaction, lock, lock, markAsRollback, merge, persist, postInit, refresh, refresh, refresh, refresh, remove, setFlushMode, setProperty, throwPersistenceException, throwPersistenceException, unwrap, wrapLockException, wrapStaleStateExceptionprotected Session session
protected boolean open
protected boolean discardOnClose
public EntityManagerImpl(EntityManagerFactoryImpl entityManagerFactory, javax.persistence.PersistenceContextType pcType, javax.persistence.spi.PersistenceUnitTransactionType transactionType, boolean discardOnClose, Class sessionInterceptorClass, Map properties)
public Session getSession()
AbstractEntityManagerImplgetSession in interface HibernateEntityManagergetSession in class AbstractEntityManagerImplprotected Session getRawSession()
AbstractEntityManagerImplgetRawSession in class AbstractEntityManagerImplpublic void close()
public boolean isOpen()
Copyright © 2002-2017 Red Hat Middleware, LLC. All Rights Reserved