org.apache.geronimo.samples.daytrader
Class AccountDataBean

java.lang.Object
  extended by org.apache.geronimo.samples.daytrader.AccountDataBean
All Implemented Interfaces:
Serializable

public class AccountDataBean
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
AccountDataBean()
           
AccountDataBean(Integer accountID, int loginCount, int logoutCount, Date lastLogin, Date creationDate, BigDecimal balance, BigDecimal openBalance, String profileID)
           
AccountDataBean(int loginCount, int logoutCount, Date lastLogin, Date creationDate, BigDecimal balance, BigDecimal openBalance, String profileID)
           
 
Method Summary
 Integer getAccountID()
          Gets the accountID
 BigDecimal getBalance()
          Gets the balance
 Date getCreationDate()
          Gets the creationDate
 Date getLastLogin()
          Gets the lastLogin
 int getLoginCount()
          Gets the loginCount
 int getLogoutCount()
          Gets the logoutCount
 BigDecimal getOpenBalance()
          Gets the openBalance
 Collection<OrderDataBean> getOrders()
          Gets the profileID
 AccountProfileDataBean getProfile()
           
 String getProfileID()
          Gets the profileID
static AccountDataBean getRandomInstance()
           
 void login(String password)
           
 void logout()
           
 void print()
           
 void setAccountID(Integer accountID)
          Sets the accountID
 void setBalance(BigDecimal balance)
          Sets the balance
 void setCreationDate(Date creationDate)
          Sets the creationDate
 void setLastLogin(Date lastLogin)
          Sets the lastLogin
 void setLoginCount(int loginCount)
          Sets the loginCount
 void setLogoutCount(int logoutCount)
          Sets the logoutCount
 void setOpenBalance(BigDecimal openBalance)
          Sets the openBalance
 void setOrders(Collection<OrderDataBean> orders)
           
 void setProfile(AccountProfileDataBean profile)
           
 void setProfileID(String profileID)
          Sets the profileID
 String toHTML()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AccountDataBean

public AccountDataBean()

AccountDataBean

public AccountDataBean(Integer accountID,
                       int loginCount,
                       int logoutCount,
                       Date lastLogin,
                       Date creationDate,
                       BigDecimal balance,
                       BigDecimal openBalance,
                       String profileID)

AccountDataBean

public AccountDataBean(int loginCount,
                       int logoutCount,
                       Date lastLogin,
                       Date creationDate,
                       BigDecimal balance,
                       BigDecimal openBalance,
                       String profileID)
Method Detail

getRandomInstance

public static AccountDataBean getRandomInstance()

toString

public String toString()
Overrides:
toString in class Object

toHTML

public String toHTML()

print

public void print()

getAccountID

public Integer getAccountID()
Gets the accountID

Returns:
Returns a Integer

setAccountID

public void setAccountID(Integer accountID)
Sets the accountID

Parameters:
accountID - The accountID to set

getLoginCount

public int getLoginCount()
Gets the loginCount

Returns:
Returns a int

setLoginCount

public void setLoginCount(int loginCount)
Sets the loginCount

Parameters:
loginCount - The loginCount to set

getLogoutCount

public int getLogoutCount()
Gets the logoutCount

Returns:
Returns a int

setLogoutCount

public void setLogoutCount(int logoutCount)
Sets the logoutCount

Parameters:
logoutCount - The logoutCount to set

getLastLogin

public Date getLastLogin()
Gets the lastLogin

Returns:
Returns a Date

setLastLogin

public void setLastLogin(Date lastLogin)
Sets the lastLogin

Parameters:
lastLogin - The lastLogin to set

getCreationDate

public Date getCreationDate()
Gets the creationDate

Returns:
Returns a Date

setCreationDate

public void setCreationDate(Date creationDate)
Sets the creationDate

Parameters:
creationDate - The creationDate to set

getBalance

public BigDecimal getBalance()
Gets the balance

Returns:
Returns a BigDecimal

setBalance

public void setBalance(BigDecimal balance)
Sets the balance

Parameters:
balance - The balance to set

getOpenBalance

public BigDecimal getOpenBalance()
Gets the openBalance

Returns:
Returns a BigDecimal

setOpenBalance

public void setOpenBalance(BigDecimal openBalance)
Sets the openBalance

Parameters:
openBalance - The openBalance to set

getProfileID

public String getProfileID()
Gets the profileID

Returns:
Returns a String

setProfileID

public void setProfileID(String profileID)
Sets the profileID

Parameters:
profileID - The profileID to set

getOrders

public Collection<OrderDataBean> getOrders()
Gets the profileID

Returns:
Returns a String

setOrders

public void setOrders(Collection<OrderDataBean> orders)

getProfile

public AccountProfileDataBean getProfile()

setProfile

public void setProfile(AccountProfileDataBean profile)

login

public void login(String password)

logout

public void logout()


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