edu.cmu.mse.vault.customer
Class CustomerEntityBean
java.lang.Object
edu.cmu.mse.vault.customer.CustomerEntityBean
- All Implemented Interfaces:
- javax.ejb.EnterpriseBean, javax.ejb.EntityBean, java.io.Serializable
- public abstract class CustomerEntityBean
- 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 |
CustomerEntityBean
public CustomerEntityBean()
setFirstName
public abstract void setFirstName(java.lang.String name)
getFirstName
public abstract java.lang.String getFirstName()
setLastName
public abstract void setLastName(java.lang.String name)
getLastName
public abstract java.lang.String getLastName()
setCustId
public abstract void setCustId(java.lang.Integer custId)
getCustId
public abstract java.lang.Integer getCustId()
getAccounts
public abstract java.util.Collection getAccounts()
setAccounts
public abstract void setAccounts(java.util.Collection accounts)
ejbCreate
public java.lang.Object ejbCreate(Customer customer)
throws javax.ejb.CreateException,
java.rmi.RemoteException
- This class returns Object becuase the id for the customer table in the
data base is an AUTO-INCREMENT field
- Throws:
javax.ejb.CreateException
java.rmi.RemoteException
ejbPostCreate
public void ejbPostCreate(Customer customer)
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