EclipseLink 1.2.0, build 'v20091016-r5565' API Reference

org.eclipse.persistence.jpa
Interface JpaEntityManager

All Superinterfaces:
EntityManager

public interface JpaEntityManager
extends EntityManager

Purpose: Defines the Interface for EclipseLink extensions to the EntityManager

See Also:
EntityManager

Method Summary
 Query createDescriptorNamedQuery(java.lang.String queryName, java.lang.Class descriptorClass)
          This method will create a query object that wraps a EclipseLink Named Query.
 Query createDescriptorNamedQuery(java.lang.String queryName, java.lang.Class descriptorClass, java.util.List argumentTypes)
          This method will create a query object that wraps a EclipseLink Named Query.
 Query createQuery(Call call)
          This method is used to create a query using a EclipseLink Call.
 Query createQuery(Call call, java.lang.Class entityClass)
          This method is used to create a query using a EclipseLink Call for the entity class.
 Query createQuery(DatabaseQuery query)
          This method is used to create a query using a EclipseLink DatabaseQuery.
 Query createQuery(Expression expression, java.lang.Class entityClass)
          This method is used to create a query using a EclipseLink Expression for the entity class.
 Query createQueryByExample(java.lang.Object exampleObject)
          This method is used to create a query using query by example.
 Session getActiveSession()
          This method returns the current session to the requester.
 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.
 
Methods inherited from interface javax.persistence.EntityManager
clear, close, contains, createNamedQuery, createNamedQuery, createNativeQuery, createNativeQuery, createNativeQuery, createQuery, createQuery, createQuery, detach, find, find, find, find, flush, getDelegate, getEntityManagerFactory, getFlushMode, getLockMode, getMetamodel, getProperties, getQueryBuilder, getReference, getSupportedProperties, getTransaction, isOpen, joinTransaction, lock, lock, merge, persist, refresh, refresh, refresh, refresh, remove, setFlushMode, setProperty, unwrap
 

Method Detail

getActiveSession

Session getActiveSession()
This method returns the current session to the requester. The current session will be the active UnitOfWork within a transaction and will be a 'scrap' UnitOfWork outside of a transaction. The caller is concerned about the results then the getSession() or getUnitOfWork() API should be called.


getServerSession

ServerSession getServerSession()
Return the underlying server session


getUnitOfWork

UnitOfWork getUnitOfWork()
This method will return the transactional UnitOfWork during the transaction and null outside of the transaction.


getSession

Session getSession()
This method will return a Session outside of a transaction and null within a transaction.


createQuery

Query createQuery(Expression expression,
                  java.lang.Class entityClass)
This method is used to create a query using a EclipseLink Expression for the entity class.


createQuery

Query createQuery(DatabaseQuery query)
This method is used to create a query using a EclipseLink DatabaseQuery.


createQuery

Query createQuery(Call call)
This method is used to create a query using a EclipseLink Call.


createQuery

Query createQuery(Call call,
                  java.lang.Class entityClass)
This method is used to create a query using a EclipseLink Call for the entity class.


createQueryByExample

Query createQueryByExample(java.lang.Object exampleObject)
This method is used to create a query using query by example.


createDescriptorNamedQuery

Query createDescriptorNamedQuery(java.lang.String queryName,
                                 java.lang.Class descriptorClass)
This method will create a query object that wraps a EclipseLink Named Query.


createDescriptorNamedQuery

Query createDescriptorNamedQuery(java.lang.String queryName,
                                 java.lang.Class descriptorClass,
                                 java.util.List argumentTypes)
This method will create a query object that wraps a EclipseLink Named Query.


EclipseLink 1.2.0, build 'v20091016-r5565' API Reference