Purpose: Defines the Interface for EclipseLink extensions to the EntityManager
jakarta.persistence.EntityManager
| Modifier and Type | Method and Description |
|---|---|
| public Object | copy(Object entityOrEntities, AttributeGroup group)
This method will return copy the passed entity using the passed AttributeGroup. |
| public Query | createDescriptorNamedQuery(String queryName, Class<?> descriptorClass)
This method will create a query object that wraps a EclipseLink Named Query. |
| public Query | createDescriptorNamedQuery(String queryName, Class<?> descriptorClass, List<E> argumentTypes)
This method will create a query object that wraps a EclipseLink Named Query. |
| public Query | createQuery(Expression expression, Class<?> entityClass)
This method is used to create a query using a EclipseLink Expression for the entity class. |
| public Query | createQuery(DatabaseQuery query)
This method is used to create a query using a EclipseLink DatabaseQuery. |
| public Query | |
| public Query | createQuery(Call call, Class<?> entityClass)
This method is used to create a query using a EclipseLink Call for the entity class. |
| public Query | createQueryByExample(Object exampleObject)
This method is used to create a query using query by example. |
| public AbstractSession | |
| public Session | |
| public DatabaseSessionImpl | |
| public AbstractSession | getMemberDatabaseSession(Class<?> cls)
Return the member DatabaseSessionImpl that maps cls in session broker. |
| public ServerSession | getMemberServerSession(Class<?> cls)
Return the member ServerSession that maps cls in session broker. |
| public String | |
| public ServerSession | |
| public Session | getSession()
This method will return a Session outside of a transaction and null within a transaction. |
| public SessionBroker | |
| public UnitOfWork | getUnitOfWork()
This method will return the transactional UnitOfWork during the transaction and null outside of the transaction. |
| public boolean | |
| public void | load(Object entityOrEntities, AttributeGroup group)
This method will load the passed entity or collection of entities using the passed AttributeGroup. |
| copy | back to summary |
|---|---|
| public Object copy(Object entityOrEntities, AttributeGroup group) This method will return copy the passed entity using the passed AttributeGroup. In case of collection all members should be either entities of the same type or have a common inheritance hierarchy mapped root class. The AttributeGroup should correspond to the entity type. | |
| createDescriptorNamedQuery | back to summary |
|---|---|
| public Query createDescriptorNamedQuery(String queryName, Class<?> descriptorClass) This method will create a query object that wraps a EclipseLink Named Query. | |
| createDescriptorNamedQuery | back to summary |
|---|---|
| public Query createDescriptorNamedQuery(String queryName, Class<?> descriptorClass, List<E> argumentTypes) This method will create a query object that wraps a EclipseLink Named Query. | |
| createQuery | back to summary |
|---|---|
| public Query createQuery(Expression expression, Class<?> entityClass) This method is used to create a query using a EclipseLink Expression for the entity class. | |
| createQuery | back to summary |
|---|---|
| public Query createQuery(DatabaseQuery query) This method is used to create a query using a EclipseLink DatabaseQuery. | |
| createQuery | back to summary |
|---|---|
| public Query createQuery(Call call) This method is used to create a query using a EclipseLink Call. | |
| createQuery | back to summary |
|---|---|
| public Query createQuery(Call call, Class<?> entityClass) This method is used to create a query using a EclipseLink Call for the entity class. | |
| createQueryByExample | back to summary |
|---|---|
| public Query createQueryByExample(Object exampleObject) This method is used to create a query using query by example. | |
| getAbstractSession | back to summary |
|---|---|
| public AbstractSession getAbstractSession() Return the underlying database session | |
| getActiveSession | back to summary |
|---|---|
| public 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. | |
| getDatabaseSession | back to summary |
|---|---|
| public DatabaseSessionImpl getDatabaseSession() Return the underlying database session | |
| getMemberDatabaseSession | back to summary |
|---|---|
| public AbstractSession getMemberDatabaseSession(Class<?> cls) Return the member DatabaseSessionImpl that maps cls in session broker. Return null if either not a session broker or cls is not mapped. Session broker implement composite persistence unit. | |
| getMemberServerSession | back to summary |
|---|---|
| public ServerSession getMemberServerSession(Class<?> cls) Return the member ServerSession that maps cls in session broker. Return null if either not a session broker or cls is not mapped. Session broker implement composite persistence unit. | |
| getMemberSessionName | back to summary |
|---|---|
| public String getMemberSessionName(Class<?> cls) Return the name of member session that maps cls. Return null if either not a session broker or cls is not mapped. Session broker implement composite persistence unit. | |
| getServerSession | back to summary |
|---|---|
| public ServerSession getServerSession() Return the underlying server session | |
| getSession | back to summary |
|---|---|
| public Session getSession() This method will return a Session outside of a transaction and null within a transaction. | |
| getSessionBroker | back to summary |
|---|---|
| public SessionBroker getSessionBroker() Return the underlying session broker | |
| getUnitOfWork | back to summary |
|---|---|
| public UnitOfWork getUnitOfWork() This method will return the transactional UnitOfWork during the transaction and null outside of the transaction. | |
| isBroker | back to summary |
|---|---|
| public boolean isBroker() Indicates whether the underlying session is a session broker. Session broker implement composite persistence unit. | |
| load | back to summary |
|---|---|
| public void load(Object entityOrEntities, AttributeGroup group) This method will load the passed entity or collection of entities using the passed AttributeGroup. In case of collection all members should be either entities of the same type or have a common inheritance hierarchy mapped root class. The AttributeGroup should correspond to the entity type. | |