edu.cmu.mse.vault.account
Class AccountEntityBean

java.lang.Object
  extended byedu.cmu.mse.vault.account.AccountEntityBean
All Implemented Interfaces:
javax.ejb.EnterpriseBean, javax.ejb.EntityBean, java.io.Serializable

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

$Version: $

See Also:
Serialized Form

Constructor Summary
AccountEntityBean()
           
 
Method Summary
 void ejbActivate()
           
 java.lang.Object ejbCreate(Account account, CustomerEntityLocal customerEntity)
          This class returns Object becuase the Primary key for account table in the vault database is an AUTO-INCREMENT field
 void ejbLoad()
           
 void ejbPassivate()
           
 void ejbPostCreate(Account account, CustomerEntityLocal customerEntity)
           
 void ejbRemove()
           
 void ejbStore()
           
abstract  java.lang.Integer getAccountId()
           
abstract  java.lang.Double getBalance()
           
abstract  CustomerEntityLocal getCustomer()
           
abstract  java.util.Collection getTransactions()
           
abstract  void setAccountId(java.lang.Integer accountId)
          Rememeber accountId is the auto-generated key
abstract  void setBalance(java.lang.Double balance)
           
abstract  void setCustomer(CustomerEntityLocal customer)
          Relationship methods for account-customer relation
 void setEntityContext(javax.ejb.EntityContext ctx)
           
abstract  void setTransactions(java.util.Collection transactions)
           
 void unsetEntityContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccountEntityBean

public AccountEntityBean()
Method Detail

setBalance

public abstract void setBalance(java.lang.Double balance)

getBalance

public abstract java.lang.Double getBalance()

setAccountId

public abstract void setAccountId(java.lang.Integer accountId)
Rememeber accountId is the auto-generated key


getAccountId

public abstract java.lang.Integer getAccountId()

setCustomer

public abstract void setCustomer(CustomerEntityLocal customer)
Relationship methods for account-customer relation


getCustomer

public abstract CustomerEntityLocal getCustomer()

getTransactions

public abstract java.util.Collection getTransactions()

setTransactions

public abstract void setTransactions(java.util.Collection transactions)

ejbCreate

public java.lang.Object ejbCreate(Account account,
                                  CustomerEntityLocal customerEntity)
                           throws javax.ejb.CreateException,
                                  java.rmi.RemoteException
This class returns Object becuase the Primary key for account table in the vault database is an AUTO-INCREMENT field

Throws:
javax.ejb.CreateException
java.rmi.RemoteException

ejbPostCreate

public void ejbPostCreate(Account account,
                          CustomerEntityLocal customerEntity)
                   throws javax.ejb.CreateException,
                          java.rmi.RemoteException
Throws:
javax.ejb.CreateException
java.rmi.RemoteException

ejbActivate

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

ejbLoad

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

ejbPassivate

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

ejbRemove

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

ejbStore

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

setEntityContext

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

unsetEntityContext

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