Save This Page
Home » jboss-5.0.0.CR1-src » org.jboss.blocks » ejb » [javadoc | source]
org.jboss.blocks.ejb
public class: EntityBeanSupport [javadoc | source]
java.lang.Object
   org.jboss.blocks.ejb.EntityBeanSupport

All Implemented Interfaces:
    javax.ejb.EntityBean

A base support class for an EJB entity bean.

Fulfills all methods required for the EntityBean interface including basic EntityContext handling and provides helper methods for common entity actions.

Also provides support for isModified if the bean developer chooses to make use of it.

Field Summary
protected  Logger log    Instance logger. 
Method from org.jboss.blocks.ejb.EntityBeanSupport Summary:
ejbActivate,   ejbLoad,   ejbPassivate,   ejbRemove,   ejbStore,   getEJBContext,   getEJBObject,   getEntityContext,   isModified,   setEntityContext,   setModified,   setModified,   unsetEntityContext
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.blocks.ejb.EntityBeanSupport Detail:
 public  void ejbActivate() throws EJBException, RemoteException 
    Non-operation.
 public  void ejbLoad() throws EJBException, RemoteException 
    Non-operation.
 public  void ejbPassivate() throws EJBException, RemoteException 
    Non-operation.
 public  void ejbRemove() throws EJBException, RemoveException, RemoteException 
    Non-operation.
 public  void ejbStore() throws EJBException, RemoteException 
    Clears the modified flag.
 protected EJBContext getEJBContext() throws EJBException 
    Get the EJB context.
 public EJBObject getEJBObject() throws IllegalStateException 
    Helper method to get the EJBObject associated with this Entity bean.

    Same as getEntityContext().getEJBObject().

 public EntityContext getEntityContext() throws EJBException 
    Get the entity context.
 public boolean isModified() 
    Check if this bean has been modified.
 public  void setEntityContext(EntityContext context) throws EJBException, RemoteException 
    Set the entity context.
 protected  void setModified() 
    Mark this bean as modified.
 protected  void setModified(boolean flag) 
    Change the modified flag.
 public  void unsetEntityContext() throws EJBException, RemoteException 
    Unset the entity context.