org.apache.geronimo.samples.daytrader
Class QuoteDataBean

java.lang.Object
  extended by org.apache.geronimo.samples.daytrader.QuoteDataBean
All Implemented Interfaces:
Serializable

public class QuoteDataBean
extends Object
implements Serializable

See Also:
Serialized Form

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

Constructor Detail

QuoteDataBean

public QuoteDataBean()

QuoteDataBean

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

QuoteDataBean

public QuoteDataBean(String symbol)
Method Detail

getRandomInstance

public static QuoteDataBean getRandomInstance()

toString

public String toString()
Overrides:
toString in class Object

toHTML

public String toHTML()

print

public void print()

getSymbol

public String getSymbol()
Gets the symbol

Returns:
Returns a String

setSymbol

public void setSymbol(String symbol)
Sets the symbol

Parameters:
symbol - The symbol to set

getCompanyName

public String getCompanyName()
Gets the companyName

Returns:
Returns a String

setCompanyName

public void setCompanyName(String companyName)
Sets the companyName

Parameters:
companyName - The companyName to set

getPrice

public BigDecimal getPrice()
Gets the price

Returns:
Returns a BigDecimal

setPrice

public void setPrice(BigDecimal price)
Sets the price

Parameters:
price - The price to set

getOpen

public BigDecimal getOpen()
Gets the open1

Returns:
Returns a BigDecimal

setOpen

public void setOpen(BigDecimal open)
Sets the open1

Parameters:
open - The open1 to set

getLow

public BigDecimal getLow()
Gets the low

Returns:
Returns a BigDecimal

setLow

public void setLow(BigDecimal low)
Sets the low

Parameters:
low - The low to set

getHigh

public BigDecimal getHigh()
Gets the high

Returns:
Returns a BigDecimal

setHigh

public void setHigh(BigDecimal high)
Sets the high

Parameters:
high - The high to set

getChange

public double getChange()
Gets the change1

Returns:
Returns a double

setChange

public void setChange(double change)
Sets the change1

Parameters:
change - The change1 to set

getVolume

public double getVolume()
Gets the volume

Returns:
Returns a BigDecimal

setVolume

public void setVolume(double volume)
Sets the volume

Parameters:
volume - The volume to set


Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.