org.apache.geronimo.samples.daytrader
Class HoldingDataBean

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

public class HoldingDataBean
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
HoldingDataBean()
           
HoldingDataBean(double quantity, BigDecimal purchasePrice, Date purchaseDate, AccountDataBean account, QuoteDataBean quote)
           
HoldingDataBean(Integer holdingID, double quantity, BigDecimal purchasePrice, Date purchaseDate, String quoteID)
           
 
Method Summary
 AccountDataBean getAccount()
           
 Integer getHoldingID()
          Gets the holdingID
 Date getPurchaseDate()
          Gets the purchaseDate
 BigDecimal getPurchasePrice()
          Gets the purchasePrice
 double getQuantity()
          Gets the quantity
 QuoteDataBean getQuote()
          Gets the quoteID
 String getQuoteID()
          Gets the quoteID
static HoldingDataBean getRandomInstance()
           
 void print()
           
 void setAccount(AccountDataBean account)
           
 void setHoldingID(Integer holdingID)
          Sets the holdingID
 void setPurchaseDate(Date purchaseDate)
          Sets the purchaseDate
 void setPurchasePrice(BigDecimal purchasePrice)
          Sets the purchasePrice
 void setQuantity(double quantity)
          Sets the quantity
 void setQuote(QuoteDataBean quote)
           
 void setQuoteID(String quoteID)
          Sets the quoteID
 String toHTML()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HoldingDataBean

public HoldingDataBean()

HoldingDataBean

public HoldingDataBean(Integer holdingID,
                       double quantity,
                       BigDecimal purchasePrice,
                       Date purchaseDate,
                       String quoteID)

HoldingDataBean

public HoldingDataBean(double quantity,
                       BigDecimal purchasePrice,
                       Date purchaseDate,
                       AccountDataBean account,
                       QuoteDataBean quote)
Method Detail

getRandomInstance

public static HoldingDataBean getRandomInstance()

toString

public String toString()
Overrides:
toString in class Object

toHTML

public String toHTML()

print

public void print()

getHoldingID

public Integer getHoldingID()
Gets the holdingID

Returns:
Returns a Integer

setHoldingID

public void setHoldingID(Integer holdingID)
Sets the holdingID

Parameters:
holdingID - The holdingID to set

getQuantity

public double getQuantity()
Gets the quantity

Returns:
Returns a BigDecimal

setQuantity

public void setQuantity(double quantity)
Sets the quantity

Parameters:
quantity - The quantity to set

getPurchasePrice

public BigDecimal getPurchasePrice()
Gets the purchasePrice

Returns:
Returns a BigDecimal

setPurchasePrice

public void setPurchasePrice(BigDecimal purchasePrice)
Sets the purchasePrice

Parameters:
purchasePrice - The purchasePrice to set

getPurchaseDate

public Date getPurchaseDate()
Gets the purchaseDate

Returns:
Returns a Date

setPurchaseDate

public void setPurchaseDate(Date purchaseDate)
Sets the purchaseDate

Parameters:
purchaseDate - The purchaseDate to set

getQuoteID

public String getQuoteID()
Gets the quoteID

Returns:
Returns symbol for associated quote

setQuoteID

public void setQuoteID(String quoteID)
Sets the quoteID

Parameters:
quoteID - The quoteID to set

getAccount

public AccountDataBean getAccount()

setAccount

public void setAccount(AccountDataBean account)

getQuote

public QuoteDataBean getQuote()
Gets the quoteID

Returns:
Returns a Integer

setQuote

public void setQuote(QuoteDataBean quote)


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