/** * Finds the unique bank account indexed by primary key key */ public AccountPK ejbFindByPrimaryKey(AccountPK key) /** * Finds all the prodUCt entity beanss. Returns an Enumeration * of primary keys. */ public Enumeration ejbFindAllProducts() /** * Finds all Bank Accounts that have at least a minimum balance. * Returns an Enumeration of primary keys. */ public Enumeration ejbFindBigAccounts(int minimum) /** * Finds the most recently placed order */ public OrderPK ejbFindMostRecentOrder()
Creating a beans-managed persistent entity beans and EJB object.
public interface Javax.ejb.EJBContext { public abstract Javax.ejb.EJBHome getEJBHome(); public abstract Java.util.Properties getEnvironment(); public abstract Java.security.Identity getCallerIdentity(); public abstract boolean isCallerInRole(Java.security.Identity); public abstract Javax.jts.UserTransaction getUserTransaction(); public abstract void setRollbackOnly(); public abstract boolean getRollbackOnly(); } Source Javax.ejb.EJBContext
The Javax.ejb.EJBContext Interface’s Methods public interface Javax.ejb.EntityContext implements Javax.ejb.EJBContext { public abstract Javax.ejb.EJBObject getEJBObject(); public abstract Java.lang.Object getPrimaryKey(); } getEJBObject() getPrimaryKey()