org.hibernate.ejb
Class EntityManagerImpl

java.lang.Object
  extended by org.hibernate.ejb.AbstractEntityManagerImpl
      extended by org.hibernate.ejb.EntityManagerImpl
All Implemented Interfaces:
Serializable, EntityManager, HibernateEntityManager, HibernateEntityManagerImplementor

public class EntityManagerImpl
extends AbstractEntityManagerImpl

Hibernate implementation of EntityManager.

Author:
Gavin King
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.hibernate.ejb.AbstractEntityManagerImpl
AbstractEntityManagerImpl.TupleBuilderTransformer
 
Nested classes/interfaces inherited from interface org.hibernate.ejb.HibernateEntityManagerImplementor
HibernateEntityManagerImplementor.Options
 
Field Summary
protected  boolean discardOnClose
           
protected  boolean open
           
protected  Session session
           
 
Fields inherited from class org.hibernate.ejb.AbstractEntityManagerImpl
persistenceContextType, tx
 
Constructor Summary
EntityManagerImpl(EntityManagerFactoryImpl entityManagerFactory, PersistenceContextType pcType, PersistenceUnitTransactionType transactionType, boolean discardOnClose, Class sessionInterceptorClass, Map properties)
           
 
Method Summary
 void close()
           
protected  Session getRawSession()
          Return a Session (even if the entity manager is closed).
 Session getSession()
          return a Session
 boolean isOpen()
           
 
Methods inherited from class org.hibernate.ejb.AbstractEntityManagerImpl
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, wrapStaleStateException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

session

protected Session session

open

protected boolean open

discardOnClose

protected boolean discardOnClose
Constructor Detail

EntityManagerImpl

public EntityManagerImpl(EntityManagerFactoryImpl entityManagerFactory,
                         PersistenceContextType pcType,
                         PersistenceUnitTransactionType transactionType,
                         boolean discardOnClose,
                         Class sessionInterceptorClass,
                         Map properties)
Method Detail

getSession

public Session getSession()
Description copied from class: AbstractEntityManagerImpl
return a Session

Specified by:
getSession in interface HibernateEntityManager
Specified by:
getSession in class AbstractEntityManagerImpl
Returns:

getRawSession

protected Session getRawSession()
Description copied from class: AbstractEntityManagerImpl
Return a Session (even if the entity manager is closed).

Specified by:
getRawSession in class AbstractEntityManagerImpl
Returns:
A session.

close

public void close()

isOpen

public boolean isOpen()


Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.