com.bankframe.ejb.extension
Class EEntityBean

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

public abstract class EEntityBean
extends Object
implements 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.
 EntityContext getEntityContext()
          This method gets the entity's context.
abstract  Populator getPopulator()
          This method gets the entity's populator.
 void setEntityContext(EntityContext ctx)
          This method sets the entity's context.
abstract  DataPacket toDataPacket()
          This method is the default implementation to convert to DataPacket.
 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 EntityBean

ejbLoad

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

Specified by:
ejbLoad in interface EntityBean
Throws:
RemoteException

ejbPassivate

public void ejbPassivate()
This method passivates the ejb.

Specified by:
ejbPassivate in interface EntityBean

ejbRemove

public void ejbRemove()
This method removes the EJB.

Specified by:
ejbRemove in interface EntityBean

ejbStore

public void ejbStore()
This methog stores the EJB.

Specified by:
ejbStore in interface EntityBean

getEntityContext

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

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

getPopulator

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

Returns:
the populator for the entity.

setEntityContext

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

Specified by:
setEntityContext in interface EntityBean
Parameters:
ctx - EntityContext the context of the entity.
Throws:
RemoteException

toDataPacket

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

Returns:
the DataPacket representation

toString

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

Overrides:
toString in class Object
Returns:
the entity as a string.

unsetEntityContext

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

Specified by:
unsetEntityContext in interface EntityBean
Throws:
RemoteException

validate

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

Returns:
true


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