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

java.lang.Object
  extended byorg.apache.geronimo.samples.daytrader.ejb.AccountBean
All Implemented Interfaces:
javax.ejb.EnterpriseBean, javax.ejb.EntityBean, java.io.Serializable

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

See Also:
Serialized Form

Constructor Summary
AccountBean()
           
 
Method Summary
 void ejbActivate()
           
 java.lang.Integer ejbCreate(java.lang.Integer accountID, java.lang.String userID, java.lang.String password, java.math.BigDecimal openBalance, java.lang.String fullname, java.lang.String address, java.lang.String email, java.lang.String creditCard)
           
 java.lang.Integer ejbCreate(int accountID, java.lang.String userID, java.lang.String password, java.math.BigDecimal openBalance, java.lang.String fullname, java.lang.String address, java.lang.String email, java.lang.String creditcard)
           
 void ejbLoad()
           
 void ejbPassivate()
           
 void ejbPostCreate(java.lang.Integer accountID, java.lang.String userID, java.lang.String password, java.math.BigDecimal openBalance, java.lang.String fullname, java.lang.String address, java.lang.String email, java.lang.String creditCard)
           
 void ejbPostCreate(int accountID, java.lang.String userID, java.lang.String password, java.math.BigDecimal openBalance, java.lang.String fullname, java.lang.String address, java.lang.String email, java.lang.String creditcard)
           
 void ejbRemove()
           
abstract  java.util.Collection ejbSelectClosedOrders(java.lang.Integer accountID)
           
 void ejbStore()
           
abstract  java.lang.Integer getAccountID()
           
abstract  java.math.BigDecimal getBalance()
           
 java.util.Collection getClosedOrders()
           
abstract  java.sql.Timestamp getCreationDate()
           
 AccountDataBean getDataBean()
           
 java.util.Collection getHoldingDataBeans()
           
abstract  java.util.Collection getHoldings()
           
abstract  java.sql.Timestamp getLastLogin()
           
abstract  int getLoginCount()
           
abstract  int getLogoutCount()
           
abstract  java.math.BigDecimal getOpenBalance()
           
 java.util.Collection getOrderDataBeans()
           
abstract  java.util.Collection getOrders()
           
abstract  LocalAccountProfile getProfile()
           
 AccountProfileDataBean getProfileDataBean()
           
 LocalAccountProfile getProfileForUpdate()
           
 void login(java.lang.String password)
           
 void logout()
           
abstract  void setAccountID(java.lang.Integer accountID)
           
abstract  void setBalance(java.math.BigDecimal balance)
           
abstract  void setCreationDate(java.sql.Timestamp creationDate)
           
 void setEntityContext(javax.ejb.EntityContext ctx)
           
abstract  void setHoldings(java.util.Collection holdings)
           
abstract  void setLastLogin(java.sql.Timestamp lastLogin)
           
abstract  void setLoginCount(int loginCount)
           
abstract  void setLogoutCount(int logoutCount)
           
abstract  void setOpenBalance(java.math.BigDecimal openBalance)
           
abstract  void setOrders(java.util.Collection orders)
           
abstract  void setProfile(LocalAccountProfile profile)
           
 java.lang.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 java.lang.Integer getAccountID()

setAccountID

public abstract void setAccountID(java.lang.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 java.sql.Timestamp getLastLogin()

setLastLogin

public abstract void setLastLogin(java.sql.Timestamp lastLogin)

getCreationDate

public abstract java.sql.Timestamp getCreationDate()

setCreationDate

public abstract void setCreationDate(java.sql.Timestamp creationDate)

getBalance

public abstract java.math.BigDecimal getBalance()

setBalance

public abstract void setBalance(java.math.BigDecimal balance)

getOpenBalance

public abstract java.math.BigDecimal getOpenBalance()

setOpenBalance

public abstract void setOpenBalance(java.math.BigDecimal openBalance)

getProfile

public abstract LocalAccountProfile getProfile()

setProfile

public abstract void setProfile(LocalAccountProfile profile)

getHoldings

public abstract java.util.Collection getHoldings()

setHoldings

public abstract void setHoldings(java.util.Collection holdings)

getOrders

public abstract java.util.Collection getOrders()

setOrders

public abstract void setOrders(java.util.Collection orders)

login

public void login(java.lang.String password)

logout

public void logout()

updateAccountProfile

public AccountProfileDataBean updateAccountProfile(AccountProfileDataBean profileData)
                                            throws javax.ejb.FinderException
Throws:
javax.ejb.FinderException

getDataBean

public AccountDataBean getDataBean()

getProfileDataBean

public AccountProfileDataBean getProfileDataBean()

getHoldingDataBeans

public java.util.Collection getHoldingDataBeans()

ejbSelectClosedOrders

public abstract java.util.Collection ejbSelectClosedOrders(java.lang.Integer accountID)
                                                    throws javax.ejb.FinderException
Throws:
javax.ejb.FinderException

getClosedOrders

public java.util.Collection getClosedOrders()
                                     throws javax.ejb.FinderException
Throws:
javax.ejb.FinderException

getProfileForUpdate

public LocalAccountProfile getProfileForUpdate()
                                        throws javax.ejb.FinderException
Throws:
javax.ejb.FinderException

getOrderDataBeans

public java.util.Collection getOrderDataBeans()

toString

public java.lang.String toString()

ejbCreate

public java.lang.Integer ejbCreate(int accountID,
                                   java.lang.String userID,
                                   java.lang.String password,
                                   java.math.BigDecimal openBalance,
                                   java.lang.String fullname,
                                   java.lang.String address,
                                   java.lang.String email,
                                   java.lang.String creditcard)
                            throws javax.ejb.CreateException
Throws:
javax.ejb.CreateException

ejbCreate

public java.lang.Integer ejbCreate(java.lang.Integer accountID,
                                   java.lang.String userID,
                                   java.lang.String password,
                                   java.math.BigDecimal openBalance,
                                   java.lang.String fullname,
                                   java.lang.String address,
                                   java.lang.String email,
                                   java.lang.String creditCard)
                            throws javax.ejb.CreateException
Throws:
javax.ejb.CreateException

ejbPostCreate

public void ejbPostCreate(java.lang.Integer accountID,
                          java.lang.String userID,
                          java.lang.String password,
                          java.math.BigDecimal openBalance,
                          java.lang.String fullname,
                          java.lang.String address,
                          java.lang.String email,
                          java.lang.String creditCard)
                   throws javax.ejb.CreateException
Throws:
javax.ejb.CreateException

ejbPostCreate

public void ejbPostCreate(int accountID,
                          java.lang.String userID,
                          java.lang.String password,
                          java.math.BigDecimal openBalance,
                          java.lang.String fullname,
                          java.lang.String address,
                          java.lang.String email,
                          java.lang.String creditcard)
                   throws javax.ejb.CreateException
Throws:
javax.ejb.CreateException

setEntityContext

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

unsetEntityContext

public void unsetEntityContext()
Specified by:
unsetEntityContext in interface javax.ejb.EntityBean

ejbRemove

public void ejbRemove()
Specified by:
ejbRemove in interface javax.ejb.EntityBean

ejbLoad

public void ejbLoad()
Specified by:
ejbLoad in interface javax.ejb.EntityBean

ejbStore

public void ejbStore()
Specified by:
ejbStore in interface javax.ejb.EntityBean

ejbPassivate

public void ejbPassivate()
Specified by:
ejbPassivate in interface javax.ejb.EntityBean

ejbActivate

public void ejbActivate()
Specified by:
ejbActivate in interface javax.ejb.EntityBean


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