|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.mse.vault.account.AccountEntityBean
$Version: $
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 |
public AccountEntityBean()
Method Detail |
public abstract void setBalance(java.lang.Double balance)
public abstract java.lang.Double getBalance()
public abstract void setAccountId(java.lang.Integer accountId)
public abstract java.lang.Integer getAccountId()
public abstract void setCustomer(CustomerEntityLocal customer)
public abstract CustomerEntityLocal getCustomer()
public abstract java.util.Collection getTransactions()
public abstract void setTransactions(java.util.Collection transactions)
public java.lang.Object ejbCreate(Account account, CustomerEntityLocal customerEntity) throws javax.ejb.CreateException, java.rmi.RemoteException
javax.ejb.CreateException
java.rmi.RemoteException
public void ejbPostCreate(Account account, CustomerEntityLocal customerEntity) throws javax.ejb.CreateException, java.rmi.RemoteException
javax.ejb.CreateException
java.rmi.RemoteException
public void ejbActivate() throws javax.ejb.EJBException, java.rmi.RemoteException
ejbActivate
in interface javax.ejb.EntityBean
javax.ejb.EJBException
java.rmi.RemoteException
public void ejbLoad() throws javax.ejb.EJBException, java.rmi.RemoteException
ejbLoad
in interface javax.ejb.EntityBean
javax.ejb.EJBException
java.rmi.RemoteException
public void ejbPassivate() throws javax.ejb.EJBException, java.rmi.RemoteException
ejbPassivate
in interface javax.ejb.EntityBean
javax.ejb.EJBException
java.rmi.RemoteException
public void ejbRemove() throws javax.ejb.RemoveException, javax.ejb.EJBException, java.rmi.RemoteException
ejbRemove
in interface javax.ejb.EntityBean
javax.ejb.RemoveException
javax.ejb.EJBException
java.rmi.RemoteException
public void ejbStore() throws javax.ejb.EJBException, java.rmi.RemoteException
ejbStore
in interface javax.ejb.EntityBean
javax.ejb.EJBException
java.rmi.RemoteException
public void setEntityContext(javax.ejb.EntityContext ctx) throws javax.ejb.EJBException, java.rmi.RemoteException
setEntityContext
in interface javax.ejb.EntityBean
javax.ejb.EJBException
java.rmi.RemoteException
public void unsetEntityContext() throws javax.ejb.EJBException, java.rmi.RemoteException
unsetEntityContext
in interface javax.ejb.EntityBean
javax.ejb.EJBException
java.rmi.RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |