org.apache.aries.samples.ariestrader.entities
Class OrderDataBeanImpl

java.lang.Object
  extended by org.apache.aries.samples.ariestrader.entities.OrderDataBeanImpl
All Implemented Interfaces:
Serializable, OrderDataBean

@Entity(name="orderejb")
public class OrderDataBeanImpl
extends Object
implements OrderDataBean, Serializable

See Also:
Serialized Form

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

Constructor Detail

OrderDataBeanImpl

public OrderDataBeanImpl()

OrderDataBeanImpl

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

OrderDataBeanImpl

public OrderDataBeanImpl(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()
Specified by:
toString in interface OrderDataBean
Overrides:
toString in class Object

toHTML

public String toHTML()
Specified by:
toHTML in interface OrderDataBean

print

public void print()

getOrderID

public Integer getOrderID()
Specified by:
getOrderID in interface OrderDataBean

setOrderID

public void setOrderID(Integer orderID)
Specified by:
setOrderID in interface OrderDataBean

getOrderType

public String getOrderType()
Specified by:
getOrderType in interface OrderDataBean

setOrderType

public void setOrderType(String orderType)
Specified by:
setOrderType in interface OrderDataBean

getOrderStatus

public String getOrderStatus()
Specified by:
getOrderStatus in interface OrderDataBean

setOrderStatus

public void setOrderStatus(String orderStatus)
Specified by:
setOrderStatus in interface OrderDataBean

getOpenDate

public Date getOpenDate()
Specified by:
getOpenDate in interface OrderDataBean

setOpenDate

public void setOpenDate(Date openDate)
Specified by:
setOpenDate in interface OrderDataBean

getCompletionDate

public Date getCompletionDate()
Specified by:
getCompletionDate in interface OrderDataBean

setCompletionDate

public void setCompletionDate(Date completionDate)
Specified by:
setCompletionDate in interface OrderDataBean

getQuantity

public double getQuantity()
Specified by:
getQuantity in interface OrderDataBean

setQuantity

public void setQuantity(double quantity)
Specified by:
setQuantity in interface OrderDataBean

getPrice

public BigDecimal getPrice()
Specified by:
getPrice in interface OrderDataBean

setPrice

public void setPrice(BigDecimal price)
Specified by:
setPrice in interface OrderDataBean

getOrderFee

public BigDecimal getOrderFee()
Specified by:
getOrderFee in interface OrderDataBean

setOrderFee

public void setOrderFee(BigDecimal orderFee)
Specified by:
setOrderFee in interface OrderDataBean

getSymbol

public String getSymbol()
Specified by:
getSymbol in interface OrderDataBean

setSymbol

public void setSymbol(String symbol)
Specified by:
setSymbol in interface OrderDataBean

getAccount

public AccountDataBean getAccount()
Specified by:
getAccount in interface OrderDataBean

setAccount

public void setAccount(AccountDataBean account)
Specified by:
setAccount in interface OrderDataBean

getQuote

public QuoteDataBean getQuote()
Specified by:
getQuote in interface OrderDataBean

setQuote

public void setQuote(QuoteDataBean quote)
Specified by:
setQuote in interface OrderDataBean

getHolding

public HoldingDataBean getHolding()
Specified by:
getHolding in interface OrderDataBean

setHolding

public void setHolding(HoldingDataBean holding)
Specified by:
setHolding in interface OrderDataBean

isBuy

public boolean isBuy()
Specified by:
isBuy in interface OrderDataBean

isSell

public boolean isSell()
Specified by:
isSell in interface OrderDataBean

isOpen

public boolean isOpen()
Specified by:
isOpen in interface OrderDataBean

isCompleted

public boolean isCompleted()
Specified by:
isCompleted in interface OrderDataBean

isCancelled

public boolean isCancelled()
Specified by:
isCancelled in interface OrderDataBean

cancel

public void cancel()
Specified by:
cancel in interface OrderDataBean

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object object)
Overrides:
equals in class Object


Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.