org.apache.geronimo.samples.daytrader.ejb
Class HoldingBean

java.lang.Object
  extended by org.apache.geronimo.samples.daytrader.ejb.HoldingBean
All Implemented Interfaces:
Serializable, EnterpriseBean, EntityBean

public abstract class HoldingBean
extends Object
implements EntityBean

See Also:
Serialized Form

Constructor Summary
HoldingBean()
           
 
Method Summary
 void ejbActivate()
           
 Integer ejbCreate(Integer holdingID, LocalAccount account, LocalQuote quote, double quantity, BigDecimal purchasePrice)
           
 Integer ejbCreate(int holdingID, LocalAccount account, LocalQuote quote, double quantity, BigDecimal purchasePrice)
           
 void ejbLoad()
           
 void ejbPassivate()
           
 void ejbPostCreate(Integer holdingID, LocalAccount account, LocalQuote quote, double quantity, BigDecimal purchasePrice)
           
 void ejbPostCreate(int holdingID, LocalAccount account, LocalQuote quote, double quantity, BigDecimal purchasePrice)
           
 void ejbRemove()
           
abstract  LocalQuote ejbSelectQuoteFromSymbol(String symbol)
           
 void ejbStore()
           
abstract  LocalAccount getAccount()
           
 HoldingDataBean getDataBean()
           
abstract  Integer getHoldingID()
           
abstract  Timestamp getPurchaseDate()
           
abstract  BigDecimal getPurchasePrice()
           
abstract  double getQuantity()
           
abstract  LocalQuote getQuote()
           
abstract  void setAccount(LocalAccount account)
           
 void setEntityContext(EntityContext ctx)
           
abstract  void setHoldingID(Integer holdingID)
           
abstract  void setPurchaseDate(Timestamp purchaseDate)
           
abstract  void setPurchasePrice(BigDecimal purchasePrice)
           
abstract  void setQuantity(double quantity)
           
abstract  void setQuote(LocalQuote quote)
           
 String toString()
           
 void unsetEntityContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HoldingBean

public HoldingBean()
Method Detail

getHoldingID

public abstract Integer getHoldingID()

setHoldingID

public abstract void setHoldingID(Integer holdingID)

getQuantity

public abstract double getQuantity()

setQuantity

public abstract void setQuantity(double quantity)

getPurchasePrice

public abstract BigDecimal getPurchasePrice()

setPurchasePrice

public abstract void setPurchasePrice(BigDecimal purchasePrice)

getPurchaseDate

public abstract Timestamp getPurchaseDate()

setPurchaseDate

public abstract void setPurchaseDate(Timestamp purchaseDate)

getAccount

public abstract LocalAccount getAccount()

setAccount

public abstract void setAccount(LocalAccount account)

getQuote

public abstract LocalQuote getQuote()

setQuote

public abstract void setQuote(LocalQuote quote)

ejbSelectQuoteFromSymbol

public abstract LocalQuote ejbSelectQuoteFromSymbol(String symbol)
                                             throws FinderException
Throws:
FinderException

getDataBean

public HoldingDataBean getDataBean()

toString

public String toString()
Overrides:
toString in class Object

ejbCreate

public Integer ejbCreate(int holdingID,
                         LocalAccount account,
                         LocalQuote quote,
                         double quantity,
                         BigDecimal purchasePrice)
                  throws CreateException
Throws:
CreateException

ejbCreate

public Integer ejbCreate(Integer holdingID,
                         LocalAccount account,
                         LocalQuote quote,
                         double quantity,
                         BigDecimal purchasePrice)
                  throws CreateException
Throws:
CreateException

ejbPostCreate

public void ejbPostCreate(Integer holdingID,
                          LocalAccount account,
                          LocalQuote quote,
                          double quantity,
                          BigDecimal purchasePrice)
                   throws CreateException
Throws:
CreateException

ejbPostCreate

public void ejbPostCreate(int holdingID,
                          LocalAccount account,
                          LocalQuote quote,
                          double quantity,
                          BigDecimal purchasePrice)
                   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.