org.apache.geronimo.samples.daytrader.ejb
Class AccountBean

java.lang.Object
  extended by org.apache.geronimo.samples.daytrader.ejb.AccountBean
All Implemented Interfaces:
Serializable, EnterpriseBean, EntityBean

public abstract class AccountBean
extends Object
implements EntityBean

See Also:
Serialized Form

Constructor Summary
AccountBean()
           
 
Method Summary
 void ejbActivate()
           
 Integer ejbCreate(Integer accountID, String userID, String password, BigDecimal openBalance, String fullname, String address, String email, String creditCard)
           
 Integer ejbCreate(int accountID, String userID, String password, BigDecimal openBalance, String fullname, String address, String email, String creditcard)
           
 void ejbLoad()
           
 void ejbPassivate()
           
 void ejbPostCreate(Integer accountID, String userID, String password, BigDecimal openBalance, String fullname, String address, String email, String creditCard)
           
 void ejbPostCreate(int accountID, String userID, String password, BigDecimal openBalance, String fullname, String address, String email, String creditcard)
           
 void ejbRemove()
           
abstract  Collection ejbSelectClosedOrders(Integer accountID)
           
 void ejbStore()
           
abstract  Integer getAccountID()
           
abstract  BigDecimal getBalance()
           
 Collection getClosedOrders()
           
abstract  Timestamp getCreationDate()
           
 AccountDataBean getDataBean()
           
 Collection getHoldingDataBeans()
           
abstract  Collection getHoldings()
           
abstract  Timestamp getLastLogin()
           
abstract  int getLoginCount()
           
abstract  int getLogoutCount()
           
abstract  BigDecimal getOpenBalance()
           
 Collection getOrderDataBeans()
           
abstract  Collection getOrders()
           
abstract  LocalAccountProfile getProfile()
           
 AccountProfileDataBean getProfileDataBean()
           
 LocalAccountProfile getProfileForUpdate()
           
 void login(String password)
           
 void logout()
           
abstract  void setAccountID(Integer accountID)
           
abstract  void setBalance(BigDecimal balance)
           
abstract  void setCreationDate(Timestamp creationDate)
           
 void setEntityContext(EntityContext ctx)
           
abstract  void setHoldings(Collection holdings)
           
abstract  void setLastLogin(Timestamp lastLogin)
           
abstract  void setLoginCount(int loginCount)
           
abstract  void setLogoutCount(int logoutCount)
           
abstract  void setOpenBalance(BigDecimal openBalance)
           
abstract  void setOrders(Collection orders)
           
abstract  void setProfile(LocalAccountProfile profile)
           
 String toString()
           
 void unsetEntityContext()
           
 AccountProfileDataBean updateAccountProfile(AccountProfileDataBean profileData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AccountBean

public AccountBean()
Method Detail

getAccountID

public abstract Integer getAccountID()

setAccountID

public abstract void setAccountID(Integer accountID)

getLoginCount

public abstract int getLoginCount()

setLoginCount

public abstract void setLoginCount(int loginCount)

getLogoutCount

public abstract int getLogoutCount()

setLogoutCount

public abstract void setLogoutCount(int logoutCount)

getLastLogin

public abstract Timestamp getLastLogin()

setLastLogin

public abstract void setLastLogin(Timestamp lastLogin)

getCreationDate

public abstract Timestamp getCreationDate()

setCreationDate

public abstract void setCreationDate(Timestamp creationDate)

getBalance

public abstract BigDecimal getBalance()

setBalance

public abstract void setBalance(BigDecimal balance)

getOpenBalance

public abstract BigDecimal getOpenBalance()

setOpenBalance

public abstract void setOpenBalance(BigDecimal openBalance)

getProfile

public abstract LocalAccountProfile getProfile()

setProfile

public abstract void setProfile(LocalAccountProfile profile)

getHoldings

public abstract Collection getHoldings()

setHoldings

public abstract void setHoldings(Collection holdings)

getOrders

public abstract Collection getOrders()

setOrders

public abstract void setOrders(Collection orders)

login

public void login(String password)

logout

public void logout()

updateAccountProfile

public AccountProfileDataBean updateAccountProfile(AccountProfileDataBean profileData)
                                            throws FinderException
Throws:
FinderException

getDataBean

public AccountDataBean getDataBean()

getProfileDataBean

public AccountProfileDataBean getProfileDataBean()

getHoldingDataBeans

public Collection getHoldingDataBeans()

ejbSelectClosedOrders

public abstract Collection ejbSelectClosedOrders(Integer accountID)
                                          throws FinderException
Throws:
FinderException

getClosedOrders

public Collection getClosedOrders()
                           throws FinderException
Throws:
FinderException

getProfileForUpdate

public LocalAccountProfile getProfileForUpdate()
                                        throws FinderException
Throws:
FinderException

getOrderDataBeans

public Collection getOrderDataBeans()

toString

public String toString()
Overrides:
toString in class Object

ejbCreate

public Integer ejbCreate(int accountID,
                         String userID,
                         String password,
                         BigDecimal openBalance,
                         String fullname,
                         String address,
                         String email,
                         String creditcard)
                  throws CreateException
Throws:
CreateException

ejbCreate

public Integer ejbCreate(Integer accountID,
                         String userID,
                         String password,
                         BigDecimal openBalance,
                         String fullname,
                         String address,
                         String email,
                         String creditCard)
                  throws CreateException
Throws:
CreateException

ejbPostCreate

public void ejbPostCreate(Integer accountID,
                          String userID,
                          String password,
                          BigDecimal openBalance,
                          String fullname,
                          String address,
                          String email,
                          String creditCard)
                   throws CreateException
Throws:
CreateException

ejbPostCreate

public void ejbPostCreate(int accountID,
                          String userID,
                          String password,
                          BigDecimal openBalance,
                          String fullname,
                          String address,
                          String email,
                          String creditcard)
                   throws CreateException
Throws:
CreateException

setEntityContext

public void setEntityContext(EntityContext ctx)
Specified by:
setEntityContext in interface EntityBean

unsetEntityContext

public void unsetEntityContext()
Specified by:
unsetEntityContext in interface EntityBean

ejbRemove

public void ejbRemove()
Specified by:
ejbRemove in interface EntityBean

ejbLoad

public void ejbLoad()
Specified by:
ejbLoad in interface EntityBean

ejbStore

public void ejbStore()
Specified by:
ejbStore in interface EntityBean

ejbPassivate

public void ejbPassivate()
Specified by:
ejbPassivate in interface EntityBean

ejbActivate

public void ejbActivate()
Specified by:
ejbActivate in interface EntityBean


Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.