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

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

@Entity(name="quoteejb")
public class QuoteDataBeanImpl
extends Object
implements QuoteDataBean, Serializable

See Also:
Serialized Form

Constructor Summary
QuoteDataBeanImpl()
           
QuoteDataBeanImpl(String symbol)
           
QuoteDataBeanImpl(String symbol, String companyName, double volume, BigDecimal price, BigDecimal open, BigDecimal low, BigDecimal high, double change)
           
 
Method Summary
 boolean equals(Object object)
           
 double getChange()
           
 String getCompanyName()
           
 BigDecimal getHigh()
           
 BigDecimal getLow()
           
 BigDecimal getOpen()
           
 BigDecimal getPrice()
           
static QuoteDataBean getRandomInstance()
           
 String getSymbol()
           
 double getVolume()
           
 int hashCode()
           
 void print()
           
 void setChange(double change)
           
 void setCompanyName(String companyName)
           
 void setHigh(BigDecimal high)
           
 void setLow(BigDecimal low)
           
 void setOpen(BigDecimal open)
           
 void setPrice(BigDecimal price)
           
 void setSymbol(String symbol)
           
 void setVolume(double volume)
           
 String toHTML()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QuoteDataBeanImpl

public QuoteDataBeanImpl()

QuoteDataBeanImpl

public QuoteDataBeanImpl(String symbol,
                         String companyName,
                         double volume,
                         BigDecimal price,
                         BigDecimal open,
                         BigDecimal low,
                         BigDecimal high,
                         double change)

QuoteDataBeanImpl

public QuoteDataBeanImpl(String symbol)
Method Detail

getRandomInstance

public static QuoteDataBean getRandomInstance()

toString

public String toString()
Specified by:
toString in interface QuoteDataBean
Overrides:
toString in class Object

toHTML

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

print

public void print()

getSymbol

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

setSymbol

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

getCompanyName

public String getCompanyName()
Specified by:
getCompanyName in interface QuoteDataBean

setCompanyName

public void setCompanyName(String companyName)
Specified by:
setCompanyName in interface QuoteDataBean

getPrice

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

setPrice

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

getOpen

public BigDecimal getOpen()
Specified by:
getOpen in interface QuoteDataBean

setOpen

public void setOpen(BigDecimal open)
Specified by:
setOpen in interface QuoteDataBean

getLow

public BigDecimal getLow()
Specified by:
getLow in interface QuoteDataBean

setLow

public void setLow(BigDecimal low)
Specified by:
setLow in interface QuoteDataBean

getHigh

public BigDecimal getHigh()
Specified by:
getHigh in interface QuoteDataBean

setHigh

public void setHigh(BigDecimal high)
Specified by:
setHigh in interface QuoteDataBean

getChange

public double getChange()
Specified by:
getChange in interface QuoteDataBean

setChange

public void setChange(double change)
Specified by:
setChange in interface QuoteDataBean

getVolume

public double getVolume()
Specified by:
getVolume in interface QuoteDataBean

setVolume

public void setVolume(double volume)
Specified by:
setVolume in interface QuoteDataBean

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.