public interface EntityManager
extends javax.persistence.EntityManager
Purpose: Defines the Interface for TopLink extensions to the EntityManager
EntityManager
Modifier and Type | Method and Description |
---|---|
javax.persistence.Query |
createQuery(Expression expression,
java.lang.Class resultType)
This method is used to create a query using a Toplink Expression and the return type.
|
Session |
getActiveSession()
This method returns the current session to the requestor.
|
ServerSession |
getServerSession()
Return the underlying server session
|
Session |
getSession()
This method will return a Session outside of a transaction and null within a transaction.
|
UnitOfWork |
getUnitOfWork()
This method will return the transactional UnitOfWork during the transaction and null
outside of the transaction.
|
clear, close, contains, createNamedQuery, createNamedQuery, createNativeQuery, createNativeQuery, createNativeQuery, createQuery, createQuery, createQuery, detach, find, find, find, find, flush, getCriteriaBuilder, getDelegate, getEntityManagerFactory, getFlushMode, getLockMode, getMetamodel, getProperties, getReference, getTransaction, isOpen, joinTransaction, lock, lock, merge, persist, refresh, refresh, refresh, refresh, remove, setFlushMode, setProperty, unwrap
Session getActiveSession()
ServerSession getServerSession()
UnitOfWork getUnitOfWork()
Session getSession()
javax.persistence.Query createQuery(Expression expression, java.lang.Class resultType)