public class EntityManagerImpl extends AbstractEntityManagerImpl implements SessionOwner
EntityManager
.AbstractEntityManagerImpl.TupleBuilderTransformer
HibernateEntityManagerImplementor.Options
Modifier and Type | Field and Description |
---|---|
protected boolean |
discardOnClose |
static EntityManagerMessageLogger |
LOG |
protected boolean |
open |
protected Session |
session |
persistenceContextType, tx
Constructor and Description |
---|
EntityManagerImpl(EntityManagerFactoryImpl entityManagerFactory,
PersistenceContextType pcType,
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() |
boolean |
shouldAutoCloseSession()
Should session automatically be closed after transaction completion?
|
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, getTransactionType, handlePersistenceException, isTransactionInProgress, joinTransaction, lock, lock, markAsRollback, merge, persist, postInit, refresh, refresh, refresh, refresh, remove, setFlushMode, setProperty, throwPersistenceException, throwPersistenceException, unwrap, wrapLockException, wrapStaleStateException
public static final EntityManagerMessageLogger LOG
protected Session session
protected boolean open
protected boolean discardOnClose
public EntityManagerImpl(EntityManagerFactoryImpl entityManagerFactory, PersistenceContextType pcType, PersistenceUnitTransactionType transactionType, boolean discardOnClose, Class sessionInterceptorClass, Map properties)
public Session getSession()
AbstractEntityManagerImpl
getSession
in interface HibernateEntityManager
getSession
in class AbstractEntityManagerImpl
protected Session getRawSession()
AbstractEntityManagerImpl
getRawSession
in class AbstractEntityManagerImpl
public void close()
close
in interface EntityManager
public boolean isOpen()
isOpen
in interface EntityManager
public boolean shouldAutoCloseSession()
SessionOwner
shouldAutoCloseSession
in interface SessionOwner
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.