FileDocCategorySizeDatePackage
EntityManager.javaAPI DocGlassfish v2 API3422Tue May 22 16:54:18 BST 2007oracle.toplink.essentials.ejb.cmp3

EntityManager

public interface EntityManager implements EntityManager

Purpose: Defines the Interface for TopLink extensions to the EntityManager

see
javax.persistence.EntityManager

Fields Summary
Constructors Summary
Methods Summary
public javax.persistence.QuerycreateQuery(oracle.toplink.essentials.expressions.Expression expression, java.lang.Class resultType)
This method is used to create a query using a Toplink Expression and the return type.

public oracle.toplink.essentials.sessions.SessiongetActiveSession()
This method returns the current session to the requestor. The current session will be a the active UnitOfWork within a transaction and will be a 'scrap' UnitOfWork outside of a transaction. The caller is conserned about the results then the getSession() or getUnitOfWork() API should be called.

public oracle.toplink.essentials.threetier.ServerSessiongetServerSession()
Return the underlying server session

public oracle.toplink.essentials.sessions.SessiongetSession()
This method will return a Session outside of a transaction and null within a transaction.

public oracle.toplink.essentials.sessions.UnitOfWorkgetUnitOfWork()
This method will return the transactional UnitOfWork during the transaction and null outside of the transaction.