net.sf.emarket.order.domain
Class Order

java.lang.Object
  extended by net.sf.emarket.order.domain.Order
Direct Known Subclasses:
ReceivedOrder

public class Order
extends java.lang.Object


Field Summary
static java.lang.String PRICE_TYPE_LIMIT
           
static java.lang.String PRICE_TYPE_MARKET
           
static java.lang.String STATUS_CANCELLED
           
static java.lang.String STATUS_CLOSED
           
static java.lang.String STATUS_FILLED
           
static java.lang.String STATUS_OPEN
           
static java.lang.String STATUS_PARTIALLY_FILLED
           
static java.lang.String STATUS_VERIFIED
           
static java.lang.String TERM_GOOD_FOR_DAY
           
static java.lang.String TERM_GOOD_TILL_CANCELLED
           
static java.lang.String TYPE_BUY
           
static java.lang.String TYPE_SELL
           
static java.lang.String TYPE_SHORT_SELL
           
 
Constructor Summary
Order()
           
 
Method Summary
 java.lang.String getAcctId()
           
 float getCommission()
           
 java.sql.Timestamp getCreationTime()
           
 java.lang.String getExchange()
           
 int getFilledQuantity()
           
 java.lang.String getId()
           
 float getLimitPrice()
           
 java.lang.String getOrderTerm()
           
 java.lang.String getOrderType()
           
 java.lang.String getPriceType()
           
 int getQuantity()
           
 long getQuoteId()
           
 java.lang.String getStatus()
           
 java.lang.String getSymbol()
           
 java.sql.Timestamp getTime()
           
 float getTotalCost()
           
 boolean isBuy()
           
 boolean isLimitOrder()
           
 boolean isMarketOrder()
           
 boolean isSell()
           
 void setAcctId(java.lang.String acctId)
           
 void setCommission(float commission)
           
 void setCreationTime(java.sql.Timestamp creationTime)
           
 void setExchange(java.lang.String exchange)
           
 void setFilledQuantity(int filledQuantity)
           
 void setId(java.lang.String id)
           
 void setLimitPrice(float limitPrice)
           
 void setOrderTerm(java.lang.String orderTerm)
           
 void setOrderType(java.lang.String orderType)
           
 void setPriceType(java.lang.String priceType)
           
 void setQuantity(int quantity)
           
 void setQuoteId(long quoteId)
           
 void setStatus(java.lang.String status)
           
 void setSymbol(java.lang.String symbol)
           
 void setTime(java.sql.Timestamp time)
           
 void setTotalCost(float totalCost)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_SELL

public static final java.lang.String TYPE_SELL
See Also:
Constant Field Values

TYPE_BUY

public static final java.lang.String TYPE_BUY
See Also:
Constant Field Values

TYPE_SHORT_SELL

public static final java.lang.String TYPE_SHORT_SELL
See Also:
Constant Field Values

TERM_GOOD_FOR_DAY

public static final java.lang.String TERM_GOOD_FOR_DAY
See Also:
Constant Field Values

TERM_GOOD_TILL_CANCELLED

public static final java.lang.String TERM_GOOD_TILL_CANCELLED
See Also:
Constant Field Values

PRICE_TYPE_MARKET

public static final java.lang.String PRICE_TYPE_MARKET
See Also:
Constant Field Values

PRICE_TYPE_LIMIT

public static final java.lang.String PRICE_TYPE_LIMIT
See Also:
Constant Field Values

STATUS_VERIFIED

public static final java.lang.String STATUS_VERIFIED
See Also:
Constant Field Values

STATUS_OPEN

public static final java.lang.String STATUS_OPEN
See Also:
Constant Field Values

STATUS_CLOSED

public static final java.lang.String STATUS_CLOSED
See Also:
Constant Field Values

STATUS_CANCELLED

public static final java.lang.String STATUS_CANCELLED
See Also:
Constant Field Values

STATUS_PARTIALLY_FILLED

public static final java.lang.String STATUS_PARTIALLY_FILLED
See Also:
Constant Field Values

STATUS_FILLED

public static final java.lang.String STATUS_FILLED
See Also:
Constant Field Values
Constructor Detail

Order

public Order()
Method Detail

setId

public void setId(java.lang.String id)

getId

public java.lang.String getId()

getAcctId

public java.lang.String getAcctId()

setAcctId

public void setAcctId(java.lang.String acctId)

getQuoteId

public long getQuoteId()

setQuoteId

public void setQuoteId(long quoteId)

getSymbol

public java.lang.String getSymbol()

setSymbol

public void setSymbol(java.lang.String symbol)

getExchange

public java.lang.String getExchange()

setExchange

public void setExchange(java.lang.String exchange)

getOrderType

public java.lang.String getOrderType()

setOrderType

public void setOrderType(java.lang.String orderType)

getQuantity

public int getQuantity()

setQuantity

public void setQuantity(int quantity)

getFilledQuantity

public int getFilledQuantity()

setFilledQuantity

public void setFilledQuantity(int filledQuantity)

getOrderTerm

public java.lang.String getOrderTerm()

setOrderTerm

public void setOrderTerm(java.lang.String orderTerm)

getPriceType

public java.lang.String getPriceType()

setPriceType

public void setPriceType(java.lang.String priceType)

getStatus

public java.lang.String getStatus()

setStatus

public void setStatus(java.lang.String status)

getCommission

public float getCommission()

setCommission

public void setCommission(float commission)

getTotalCost

public float getTotalCost()

setTotalCost

public void setTotalCost(float totalCost)

getCreationTime

public java.sql.Timestamp getCreationTime()

setCreationTime

public void setCreationTime(java.sql.Timestamp creationTime)

getTime

public java.sql.Timestamp getTime()

setTime

public void setTime(java.sql.Timestamp time)

getLimitPrice

public float getLimitPrice()

setLimitPrice

public void setLimitPrice(float limitPrice)

isBuy

public boolean isBuy()

isSell

public boolean isSell()

isLimitOrder

public boolean isLimitOrder()

isMarketOrder

public boolean isMarketOrder()


Copyright © 2009. All Rights Reserved.