org.hibernate.ejb
Class EntityManagerImpl
java.lang.Object
   org.hibernate.ejb.AbstractEntityManagerImpl
org.hibernate.ejb.AbstractEntityManagerImpl
       org.hibernate.ejb.EntityManagerImpl
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
 
 
 
 
 
 
 
| 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 | 
 
session
protected Session session
open
protected boolean open
discardOnClose
protected boolean discardOnClose
EntityManagerImpl
public EntityManagerImpl(EntityManagerFactoryImpl entityManagerFactory,
                         PersistenceContextType pcType,
                         PersistenceUnitTransactionType transactionType,
                         boolean discardOnClose,
                         Class sessionInterceptorClass,
                         Map properties)
getSession
public Session getSession()
- Description copied from class: AbstractEntityManagerImpl
- return a Session
 
- 
- Specified by:
- getSessionin interface- HibernateEntityManager
- Specified by:
- getSessionin class- AbstractEntityManagerImpl
 
- 
- Returns:
 
getRawSession
protected Session getRawSession()
- Description copied from class: AbstractEntityManagerImpl
- Return a Session (even if the entity manager is closed).
 
- 
- Specified by:
- getRawSessionin class- AbstractEntityManagerImpl
 
- 
- Returns:
- A session.
 
close
public void close()
- 
 
isOpen
public boolean isOpen()
- 
 
Copyright © 2001-2010 Red Hat, Inc.  All Rights Reserved.