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

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

public abstract class QuoteBean
extends Object
implements EntityBean

See Also:
Serialized Form

Constructor Summary
QuoteBean()
           
 
Method Summary
 void addToVolume(double quantity)
           
 void ejbActivate()
           
 String ejbCreate(String symbol, String companyName, BigDecimal price)
           
 void ejbLoad()
           
 void ejbPassivate()
           
 void ejbPostCreate(String symbol, String companyName, BigDecimal price)
           
 void ejbRemove()
           
abstract  Collection ejbSelectTotalVolume()
           
 void ejbStore()
           
abstract  double getChange()
           
abstract  String getCompanyName()
           
 QuoteDataBean getDataBean()
           
abstract  BigDecimal getHigh()
           
abstract  BigDecimal getLow()
           
abstract  BigDecimal getOpen()
           
abstract  Collection getOrders()
           
abstract  BigDecimal getPrice()
           
abstract  String getSymbol()
           
 double getTotalVolume()
           
abstract  double getVolume()
           
abstract  void setChange(double change)
           
abstract  void setCompanyName(String companyName)
           
 void setEntityContext(EntityContext ctx)
           
abstract  void setHigh(BigDecimal price)
           
abstract  void setLow(BigDecimal price)
           
abstract  void setOpen(BigDecimal price)
           
abstract  void setOrders(Collection orders)
           
abstract  void setPrice(BigDecimal price)
           
abstract  void setSymbol(String symbol)
           
abstract  void setVolume(double volume)
           
 String toString()
           
 void unsetEntityContext()
           
 void updatePrice(BigDecimal current)
           
 void updatePrice(double current)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QuoteBean

public QuoteBean()
Method Detail

getSymbol

public abstract String getSymbol()

setSymbol

public abstract void setSymbol(String symbol)

getCompanyName

public abstract String getCompanyName()

setCompanyName

public abstract void setCompanyName(String companyName)

getVolume

public abstract double getVolume()

setVolume

public abstract void setVolume(double volume)

getPrice

public abstract BigDecimal getPrice()

setPrice

public abstract void setPrice(BigDecimal price)

getOpen

public abstract BigDecimal getOpen()

setOpen

public abstract void setOpen(BigDecimal price)

getLow

public abstract BigDecimal getLow()

setLow

public abstract void setLow(BigDecimal price)

getHigh

public abstract BigDecimal getHigh()

setHigh

public abstract void setHigh(BigDecimal price)

getChange

public abstract double getChange()

setChange

public abstract void setChange(double change)

getOrders

public abstract Collection getOrders()

setOrders

public abstract void setOrders(Collection orders)

ejbSelectTotalVolume

public abstract Collection ejbSelectTotalVolume()
                                         throws FinderException
Throws:
FinderException

updatePrice

public void updatePrice(BigDecimal current)

updatePrice

public void updatePrice(double current)

addToVolume

public void addToVolume(double quantity)

getTotalVolume

public double getTotalVolume()
                      throws FinderException
Throws:
FinderException

getDataBean

public QuoteDataBean getDataBean()

toString

public String toString()
Overrides:
toString in class Object

ejbCreate

public String ejbCreate(String symbol,
                        String companyName,
                        BigDecimal price)
                 throws CreateException
Throws:
CreateException

ejbPostCreate

public void ejbPostCreate(String symbol,
                          String companyName,
                          BigDecimal price)
                   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.