org.apache.geronimo.samples.daytrader
Class OrderDataBean

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

public class OrderDataBean
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
OrderDataBean()
           
OrderDataBean(Integer orderID, String orderType, String orderStatus, Date openDate, Date completionDate, double quantity, BigDecimal price, BigDecimal orderFee, String symbol)
          OrderDataBean
OrderDataBean(String orderType, String orderStatus, Date openDate, Date completionDate, double quantity, BigDecimal price, BigDecimal orderFee, AccountDataBean account, QuoteDataBean quote, HoldingDataBean holding)
           
 
Method Summary
 void cancel()
           
 AccountDataBean getAccount()
           
 Date getCompletionDate()
          Gets the completionDate
 HoldingDataBean getHolding()
           
 Date getOpenDate()
          Gets the openDate
 BigDecimal getOrderFee()
          Gets the orderFee
 Integer getOrderID()
          Gets the orderID
 String getOrderStatus()
          Gets the orderStatus
 String getOrderType()
          Gets the orderType
 BigDecimal getPrice()
          Gets the price
 double getQuantity()
          Gets the quantity
 QuoteDataBean getQuote()
           
static OrderDataBean getRandomInstance()
           
 String getSymbol()
          Gets the symbol
 boolean isBuy()
           
 boolean isCancelled()
           
 boolean isCompleted()
           
 boolean isOpen()
           
 boolean isSell()
           
 void print()
           
 void setAccount(AccountDataBean account)
           
 void setCompletionDate(Date completionDate)
          Sets the completionDate
 void setHolding(HoldingDataBean holding)
           
 void setOpenDate(Date openDate)
          Sets the openDate
 void setOrderFee(BigDecimal orderFee)
          Sets the orderFee
 void setOrderID(Integer orderID)
          Sets the orderID
 void setOrderStatus(String orderStatus)
          Sets the orderStatus
 void setOrderType(String orderType)
          Sets the orderType
 void setPrice(BigDecimal price)
          Sets the price
 void setQuantity(double quantity)
          Sets the quantity
 void setQuote(QuoteDataBean quote)
           
 void setSymbol(String symbol)
          Sets the symbol
 String toHTML()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OrderDataBean

public OrderDataBean()

OrderDataBean

public OrderDataBean(Integer orderID,
                     String orderType,
                     String orderStatus,
                     Date openDate,
                     Date completionDate,
                     double quantity,
                     BigDecimal price,
                     BigDecimal orderFee,
                     String symbol)
OrderDataBean


OrderDataBean

public OrderDataBean(String orderType,
                     String orderStatus,
                     Date openDate,
                     Date completionDate,
                     double quantity,
                     BigDecimal price,
                     BigDecimal orderFee,
                     AccountDataBean account,
                     QuoteDataBean quote,
                     HoldingDataBean holding)
Method Detail

getRandomInstance

public static OrderDataBean getRandomInstance()

toString

public String toString()
Overrides:
toString in class Object

toHTML

public String toHTML()

print

public void print()

getOrderID

public Integer getOrderID()
Gets the orderID

Returns:
Returns a Integer

setOrderID

public void setOrderID(Integer orderID)
Sets the orderID

Parameters:
orderID - The orderID to set

getOrderType

public String getOrderType()
Gets the orderType

Returns:
Returns a String

setOrderType

public void setOrderType(String orderType)
Sets the orderType

Parameters:
orderType - The orderType to set

getOrderStatus

public String getOrderStatus()
Gets the orderStatus

Returns:
Returns a String

setOrderStatus

public void setOrderStatus(String orderStatus)
Sets the orderStatus

Parameters:
orderStatus - The orderStatus to set

getOpenDate

public Date getOpenDate()
Gets the openDate

Returns:
Returns a Date

setOpenDate

public void setOpenDate(Date openDate)
Sets the openDate

Parameters:
openDate - The openDate to set

getCompletionDate

public Date getCompletionDate()
Gets the completionDate

Returns:
Returns a Date

setCompletionDate

public void setCompletionDate(Date completionDate)
Sets the completionDate

Parameters:
completionDate - The completionDate 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

getPrice

public BigDecimal getPrice()
Gets the price

Returns:
Returns a BigDecimal

setPrice

public void setPrice(BigDecimal price)
Sets the price

Parameters:
price - The price to set

getOrderFee

public BigDecimal getOrderFee()
Gets the orderFee

Returns:
Returns a BigDecimal

setOrderFee

public void setOrderFee(BigDecimal orderFee)
Sets the orderFee

Parameters:
orderFee - The orderFee to set

getSymbol

public String getSymbol()
Gets the symbol

Returns:
Returns a String

setSymbol

public void setSymbol(String symbol)
Sets the symbol

Parameters:
symbol - The symbol to set

getAccount

public AccountDataBean getAccount()

setAccount

public void setAccount(AccountDataBean account)

getQuote

public QuoteDataBean getQuote()

setQuote

public void setQuote(QuoteDataBean quote)

getHolding

public HoldingDataBean getHolding()

setHolding

public void setHolding(HoldingDataBean holding)

isBuy

public boolean isBuy()

isSell

public boolean isSell()

isOpen

public boolean isOpen()

isCompleted

public boolean isCompleted()

isCancelled

public boolean isCancelled()

cancel

public void cancel()


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