org.apache.geronimo.samples.daytrader.ejb
Class OrderBean
java.lang.Object
org.apache.geronimo.samples.daytrader.ejb.OrderBean
- All Implemented Interfaces:
- Serializable, EnterpriseBean, EntityBean
public abstract class OrderBean
- extends Object
- implements EntityBean
- See Also:
- Serialized Form
Method Summary |
void |
cancel()
|
void |
ejbActivate()
|
Integer |
ejbCreate(Integer orderID,
LocalAccount account,
LocalQuote quote,
LocalHolding holding,
String orderType,
double quantity)
|
Integer |
ejbCreate(int orderID,
LocalAccount account,
LocalQuote quote,
LocalHolding holding,
String orderType,
double quantity)
|
void |
ejbLoad()
|
void |
ejbPassivate()
|
void |
ejbPostCreate(Integer orderID,
LocalAccount account,
LocalQuote quote,
LocalHolding holding,
String orderType,
double quantity)
|
void |
ejbPostCreate(int orderID,
LocalAccount account,
LocalQuote quote,
LocalHolding holding,
String orderType,
double quantity)
|
void |
ejbRemove()
|
void |
ejbStore()
|
abstract LocalAccount |
getAccount()
|
abstract Timestamp |
getCompletionDate()
|
OrderDataBean |
getDataBean()
|
abstract LocalHolding |
getHolding()
|
LocalHolding |
getHoldingForUpdate()
|
abstract Timestamp |
getOpenDate()
|
abstract BigDecimal |
getOrderFee()
|
abstract Integer |
getOrderID()
|
abstract String |
getOrderStatus()
|
abstract String |
getOrderType()
|
abstract BigDecimal |
getPrice()
|
abstract double |
getQuantity()
|
abstract LocalQuote |
getQuote()
|
boolean |
isBuy()
|
boolean |
isCancelled()
|
boolean |
isCompleted()
|
boolean |
isOpen()
|
boolean |
isSell()
|
abstract void |
setAccount(LocalAccount account)
|
abstract void |
setCompletionDate(Timestamp completionDate)
|
void |
setEntityContext(EntityContext ctx)
|
abstract void |
setHolding(LocalHolding holding)
|
abstract void |
setOpenDate(Timestamp openDate)
|
abstract void |
setOrderFee(BigDecimal price)
|
abstract void |
setOrderID(Integer orderID)
|
abstract void |
setOrderStatus(String orderType)
|
abstract void |
setOrderType(String orderType)
|
abstract void |
setPrice(BigDecimal price)
|
abstract void |
setQuantity(double quantity)
|
abstract void |
setQuote(LocalQuote quote)
|
String |
toString()
|
void |
unsetEntityContext()
|
OrderBean
public OrderBean()
getOrderID
public abstract Integer getOrderID()
setOrderID
public abstract void setOrderID(Integer orderID)
getOrderType
public abstract String getOrderType()
setOrderType
public abstract void setOrderType(String orderType)
getOrderStatus
public abstract String getOrderStatus()
setOrderStatus
public abstract void setOrderStatus(String orderType)
getOpenDate
public abstract Timestamp getOpenDate()
setOpenDate
public abstract void setOpenDate(Timestamp openDate)
getCompletionDate
public abstract Timestamp getCompletionDate()
setCompletionDate
public abstract void setCompletionDate(Timestamp completionDate)
getQuantity
public abstract double getQuantity()
setQuantity
public abstract void setQuantity(double quantity)
getPrice
public abstract BigDecimal getPrice()
setPrice
public abstract void setPrice(BigDecimal price)
getOrderFee
public abstract BigDecimal getOrderFee()
setOrderFee
public abstract void setOrderFee(BigDecimal price)
getAccount
public abstract LocalAccount getAccount()
setAccount
public abstract void setAccount(LocalAccount account)
getQuote
public abstract LocalQuote getQuote()
setQuote
public abstract void setQuote(LocalQuote quote)
getHolding
public abstract LocalHolding getHolding()
setHolding
public abstract void setHolding(LocalHolding holding)
getHoldingForUpdate
public LocalHolding getHoldingForUpdate()
isBuy
public boolean isBuy()
isSell
public boolean isSell()
isOpen
public boolean isOpen()
isCompleted
public boolean isCompleted()
isCancelled
public boolean isCancelled()
cancel
public void cancel()
getDataBean
public OrderDataBean getDataBean()
toString
public String toString()
- Overrides:
toString
in class Object
ejbCreate
public Integer ejbCreate(int orderID,
LocalAccount account,
LocalQuote quote,
LocalHolding holding,
String orderType,
double quantity)
throws CreateException
- Throws:
CreateException
ejbCreate
public Integer ejbCreate(Integer orderID,
LocalAccount account,
LocalQuote quote,
LocalHolding holding,
String orderType,
double quantity)
throws CreateException
- Throws:
CreateException
ejbPostCreate
public void ejbPostCreate(Integer orderID,
LocalAccount account,
LocalQuote quote,
LocalHolding holding,
String orderType,
double quantity)
throws CreateException
- Throws:
CreateException
ejbPostCreate
public void ejbPostCreate(int orderID,
LocalAccount account,
LocalQuote quote,
LocalHolding holding,
String orderType,
double quantity)
throws CreateException
- Throws:
CreateException
setEntityContext
public void setEntityContext(EntityContext ctx)
- Specified by:
setEntityContext
in interface EntityBean
unsetEntityContext
public void unsetEntityContext()
- Specified by:
unsetEntityContext
in interface EntityBean
ejbRemove
public void ejbRemove()
- Specified by:
ejbRemove
in interface EntityBean
ejbLoad
public void ejbLoad()
- Specified by:
ejbLoad
in interface EntityBean
ejbStore
public void ejbStore()
- Specified by:
ejbStore
in interface EntityBean
ejbPassivate
public void ejbPassivate()
- Specified by:
ejbPassivate
in interface EntityBean
ejbActivate
public void ejbActivate()
- Specified by:
ejbActivate
in interface EntityBean
Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.