com.bankframe.ejb.extension
Class EEntityBean

java.lang.Object
  extended bycom.bankframe.ejb.extension.EEntityBean
All Implemented Interfaces:
javax.ejb.EnterpriseBean, javax.ejb.EntityBean, java.io.Serializable
Direct Known Subclasses:
EBeanManagedEntityBean

public abstract class EEntityBean
extends java.lang.Object
implements javax.ejb.EntityBean

BankFrame MCA extension of EntityBean. All EntityBeans subclass from this

See Also:
Serialized Form

Constructor Summary
EEntityBean()
           
 
Method Summary
 void ejbActivate()
          This method activates the EJB.
 void ejbLoad()
          This method loads the EJB.
 void ejbPassivate()
          This method passivates the ejb.
 void ejbRemove()
          This method removes the EJB.
 void ejbStore()
          This methog stores the EJB.
 javax.ejb.EntityContext getEntityContext()
          This method gets the entity's context.
abstract  Populator getPopulator()
          This method gets the entity's populator.
 void setEntityContext(javax.ejb.EntityContext ctx)
          This method sets the entity's context.
abstract  DataPacket toDataPacket()
          This method is the default implementation to convert to DataPacket.
 java.lang.String toString()
          This method converts the entity to a string.
 void unsetEntityContext()
          This method sets the entity context to null
 boolean validate()
          This method validates the entity to true.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EEntityBean

public EEntityBean()
Method Detail

ejbActivate

public void ejbActivate()
This method activates the EJB.

Specified by:
ejbActivate in interface javax.ejb.EntityBean

ejbLoad

public void ejbLoad()
             throws java.rmi.RemoteException
This method loads the EJB.

Specified by:
ejbLoad in interface javax.ejb.EntityBean
Throws:
java.rmi.RemoteException

ejbPassivate

public void ejbPassivate()
This method passivates the ejb.

Specified by:
ejbPassivate in interface javax.ejb.EntityBean

ejbRemove

public void ejbRemove()
This method removes the EJB.

Specified by:
ejbRemove in interface javax.ejb.EntityBean

ejbStore

public void ejbStore()
This methog stores the EJB.

Specified by:
ejbStore in interface javax.ejb.EntityBean

getEntityContext

public javax.ejb.EntityContext getEntityContext()
                                         throws java.rmi.RemoteException
This method gets the entity's context.

Returns:
EntityContext the context of the entity.
Throws:
java.rmi.RemoteException

getPopulator

public abstract Populator getPopulator()
This method gets the entity's populator.

Returns:
the populator for the entity.

setEntityContext

public void setEntityContext(javax.ejb.EntityContext ctx)
                      throws java.rmi.RemoteException
This method sets the entity's context.

Specified by:
setEntityContext in interface javax.ejb.EntityBean
Throws:
java.rmi.RemoteException

toDataPacket

public abstract DataPacket toDataPacket()
This method is the default implementation to convert to DataPacket.

Returns:
the DataPacket representation

toString

public java.lang.String toString()
This method converts the entity to a string.

Returns:
the entity as a string.

unsetEntityContext

public void unsetEntityContext()
                        throws java.rmi.RemoteException
This method sets the entity context to null

Specified by:
unsetEntityContext in interface javax.ejb.EntityBean
Throws:
java.rmi.RemoteException

validate

public boolean validate()
This method validates the entity to true.

Returns:
true


Copyright © 2005, 2007, Oracle. All rights reserved.