edu.cmu.mse.vault.transaction
Class TransactionEntityBean
java.lang.Object
edu.cmu.mse.vault.transaction.TransactionEntityBean
- All Implemented Interfaces:
- javax.ejb.EnterpriseBean, javax.ejb.EntityBean, java.io.Serializable
- public abstract class TransactionEntityBean
- extends java.lang.Object
- implements javax.ejb.EntityBean
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransactionEntityBean
public TransactionEntityBean()
setAccount
public abstract void setAccount(AccountEntityLocal account)
- Relationship methods for account-transaction relation
getAccount
public abstract AccountEntityLocal getAccount()
getDate
public abstract java.util.Date getDate()
setDate
public abstract void setDate(java.util.Date date)
getTransAmount
public abstract java.lang.Double getTransAmount()
setTransAmount
public abstract void setTransAmount(java.lang.Double transAmount)
getTransferToAccount
public abstract java.lang.Integer getTransferToAccount()
setTransferToAccount
public abstract void setTransferToAccount(java.lang.Integer transferToAccount)
getTransType
public abstract java.lang.Integer getTransType()
setTransType
public abstract void setTransType(java.lang.Integer transType)
ejbCreate
public java.lang.Object ejbCreate(Transaction transaction,
AccountEntityLocal accountLocal)
throws javax.ejb.CreateException,
java.rmi.RemoteException
- This class returns Object because the id for the transaction table in the
data base is an AUTO-INCREMENT field
- Throws:
javax.ejb.CreateException
java.rmi.RemoteException
ejbPostCreate
public void ejbPostCreate(Transaction transaction,
AccountEntityLocal accountLocal)
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