org.jboss.test.bank.ejb
Class AccountBeanCMP

java.lang.Object
  extended byorg.jboss.test.util.ejb.EnterpriseSupport (src) 
      extended byorg.jboss.test.util.ejb.EntitySupport (src) 
          extended byorg.jboss.test.bank.ejb.AccountBean (src) 
              extended byorg.jboss.test.bank.ejb.AccountBeanCMP
All Implemented Interfaces:
EnterpriseBean (src) , EntityBean (src) , java.io.Serializable

public class AccountBeanCMP
extends AccountBean (src)

See Also:
Serialized Form

Field Summary
 float balance
           
 java.lang.String id
           
 Customer (src) owner
           
 
Fields inherited from class org.jboss.test.util.ejb.EntitySupport (src)
entityCtx
 
Constructor Summary
AccountBeanCMP()
           
 
Method Summary
 java.lang.String ejbCreate(AccountData (src)  data)
           
 void ejbLoad()
          A container invokes this method to instruct the instance to synchronize its state by loading it state from the underlying database.
 void ejbPostCreate(AccountData (src)  data)
           
 float getBalance()
           
 AccountData (src) getData()
           
 java.lang.String getId()
           
 Customer (src) getOwner()
           
 boolean isModified()
           
 void setBalance(float balance)
           
 void setData(AccountData (src)  data)
           
 void setId(java.lang.String id)
           
 void setOwner(Customer (src)  owner)
           
 
Methods inherited from class org.jboss.test.bank.ejb.AccountBean (src)
deposit, withdraw
 
Methods inherited from class org.jboss.test.util.ejb.EntitySupport (src)
ejbActivate, ejbPassivate, ejbRemove, ejbStore, setEntityContext, unsetEntityContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

public java.lang.String id

balance

public float balance

owner

public Customer (src)  owner
Constructor Detail

AccountBeanCMP

public AccountBeanCMP()
Method Detail

getId

public java.lang.String getId()

setId

public void setId(java.lang.String id)

getBalance

public float getBalance()
Specified by:
getBalance in class AccountBean (src)

setBalance

public void setBalance(float balance)
Specified by:
setBalance in class AccountBean (src)

getOwner

public Customer (src)  getOwner()

setOwner

public void setOwner(Customer (src)  owner)

setData

public void setData(AccountData (src)  data)

getData

public AccountData (src)  getData()

isModified

public boolean isModified()

ejbCreate

public java.lang.String ejbCreate(AccountData (src)  data)
                           throws java.rmi.RemoteException,
                                  CreateException (src) 
Throws:
java.rmi.RemoteException
CreateException (src)

ejbPostCreate

public void ejbPostCreate(AccountData (src)  data)
                   throws java.rmi.RemoteException,
                          CreateException (src) 
Throws:
java.rmi.RemoteException
CreateException (src)

ejbLoad

public void ejbLoad()
             throws java.rmi.RemoteException
Description copied from interface: EntityBean (src)

A container invokes this method to instruct the instance to synchronize its state by loading it state from the underlying database.

This method always executes in the transaction context determined by the value of the transaction attribute in the deployment descriptor.

Specified by:
ejbLoad in interface EntityBean (src)
Overrides:
ejbLoad in class EntitySupport (src)
Throws:
java.rmi.RemoteException