FileDocCategorySizeDatePackage
EntityAdapter.javaAPI DocExample706Sun Mar 07 09:43:26 GMT 1999None

EntityAdapter.java

import java.rmi.RemoteException;
import javax.ejb.EntityContext;

public class EntityAdapter implements javax.ejb.EntityBean {
    public EntityContext ejbContext;

    public void ejbActivate() throws RemoteException {}
    public void ejbPassivate() throws RemoteException {}
    public void ejbLoad() throws RemoteException {}
    public void ejbStore() throws RemoteException {}
    public void ejbRemove() throws RemoteException {}

    public void setEntityContext(EntityContext ctx) {
            ejbContext = ctx;
    }
    public void unsetEntityContext(){
            ejbContext = null;
    }
    public EntityContext getEJBContext(){
            return ejbContext;
    }
}