org.hibernate.ejb
Class EntityManagerImpl
java.lang.Object
org.hibernate.ejb.AbstractEntityManagerImpl
org.hibernate.ejb.EntityManagerImpl
- All Implemented Interfaces:
- Serializable, EntityManager, HibernateEntityManager, HibernateEntityManagerImplementor
public class EntityManagerImpl
- extends AbstractEntityManagerImpl
- Author:
- Gavin King
- See Also:
- Serialized Form
Method Summary |
void |
close()
|
protected org.hibernate.Session |
getRawSession()
Return a Session (even if the entity manager is closed |
org.hibernate.Session |
getSession()
return a Session |
boolean |
isOpen()
|
Methods inherited from class org.hibernate.ejb.AbstractEntityManagerImpl |
clear, contains, createNamedQuery, createNativeQuery, createNativeQuery, createNativeQuery, createQuery, find, flush, getDelegate, getFlushMode, getReference, getTransaction, isTransactionInProgress, joinTransaction, lock, markAsRollback, merge, persist, postInit, refresh, remove, setFlushMode, throwPersistenceException, throwPersistenceException, wrapStaleStateException |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
session
protected org.hibernate.Session session
sessionFactory
protected org.hibernate.SessionFactory sessionFactory
open
protected boolean open
discardOnClose
protected boolean discardOnClose
EntityManagerImpl
public EntityManagerImpl(org.hibernate.SessionFactory sessionFactory,
PersistenceContextType pcType,
PersistenceUnitTransactionType transactionType,
boolean discardOnClose,
Class sessionInterceptorClass,
Map properties)
getSession
public org.hibernate.Session getSession()
- Description copied from class:
AbstractEntityManagerImpl
- return a Session
- Specified by:
getSession
in interface HibernateEntityManager
- Specified by:
getSession
in class AbstractEntityManagerImpl
getRawSession
protected org.hibernate.Session getRawSession()
- Description copied from class:
AbstractEntityManagerImpl
- Return a Session (even if the entity manager is closed
- Specified by:
getRawSession
in class AbstractEntityManagerImpl
close
public void close()
isOpen
public boolean isOpen()
Copyright © 2011. All Rights Reserved.