BEA Systems, Inc.

theory.smart.foundation
Class EntityImpl

java.lang.Object
  |
  +--theory.smart.foundation.EntityImpl
Direct Known Subclasses:
AccountEntryImpl, AlphaNumericSequencerImpl, BusinessSmartWorkAreaImpl, ConfigurableEntityImpl, CustomerProfileImpl, EBusinessSessionImpl, InvoiceImpl, ItemInventoryImpl, ItemQualitiesImpl, ItemsByQualityImpl, MailboxImpl, OrderImpl, PackingListImpl, StakeholderImpl, TroubleTicketImpl, UnitListImpl

public class EntityImpl
extends java.lang.Object
implements javax.ejb.EntityBean

This is the base implementation of the Business Smart Component (BSC) entity interface. For each BSC Entity derived interface, there will be a corresponding BSC EntityImpl with business methods that are mirrored. It also provides storage for an EntityContext and an implementation of the Set and Get Entity Context methods.

See Also:
Entity, Serialized Form

Field Summary
 javax.ejb.EntityContext ctx
           
 boolean isDirty
           
 boolean isLoaded
           
 
Constructor Summary
EntityImpl()
          EntityImpl constructor.
 
Method Summary
 void ejbActivate()
          ejbActivate method.
 SmartKey ejbCreate(SmartKey key)
          ejbCreate method.
 void ejbLoad()
          ejbLoad method.
 void ejbPassivate()
          ejbPassivate method.
 void ejbPostCreate(SmartKey key)
           
 void ejbRemove()
          ejbRemove method.
 void ejbStore()
          ejbStore method.
 javax.ejb.EntityContext getEntityContext()
          getEntityContext method.
 boolean isModified()
          This method is used by some containers to evaluate if the bean has been modified and it must be persisted.
 void setEntityContext(javax.ejb.EntityContext ctx)
          setEntityContext method.
 void unsetEntityContext()
          unsetEntityContext method.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isDirty

public transient boolean isDirty

ctx

public javax.ejb.EntityContext ctx

isLoaded

public transient boolean isLoaded
Constructor Detail

EntityImpl

public EntityImpl()
EntityImpl constructor.
Method Detail

ejbActivate

public void ejbActivate()
                 throws java.rmi.RemoteException
ejbActivate method.
Specified by:
ejbActivate in interface javax.ejb.EntityBean

ejbCreate

public SmartKey ejbCreate(SmartKey key)
                   throws javax.ejb.CreateException,
                          java.rmi.RemoteException
ejbCreate method.

ejbLoad

public void ejbLoad()
             throws java.rmi.RemoteException
ejbLoad method.
Specified by:
ejbLoad in interface javax.ejb.EntityBean

ejbPassivate

public void ejbPassivate()
                  throws java.rmi.RemoteException
ejbPassivate method.
Specified by:
ejbPassivate in interface javax.ejb.EntityBean

ejbPostCreate

public void ejbPostCreate(SmartKey key)
                   throws javax.ejb.CreateException,
                          java.rmi.RemoteException

ejbRemove

public void ejbRemove()
               throws java.rmi.RemoteException,
                      javax.ejb.RemoveException
ejbRemove method.
Specified by:
ejbRemove in interface javax.ejb.EntityBean

ejbStore

public void ejbStore()
              throws java.rmi.RemoteException
ejbStore method.
Specified by:
ejbStore in interface javax.ejb.EntityBean

getEntityContext

public javax.ejb.EntityContext getEntityContext()
                                         throws java.rmi.RemoteException
getEntityContext method.

setEntityContext

public void setEntityContext(javax.ejb.EntityContext ctx)
                      throws java.rmi.RemoteException
setEntityContext method.
Specified by:
setEntityContext in interface javax.ejb.EntityBean

unsetEntityContext

public void unsetEntityContext()
                        throws java.rmi.RemoteException
unsetEntityContext method.
Specified by:
unsetEntityContext in interface javax.ejb.EntityBean

isModified

public boolean isModified()
                   throws java.rmi.RemoteException
This method is used by some containers to evaluate if the bean has been modified and it must be persisted.

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved