org.apache.geronimo.samples.daytrader
Class QuoteDataBean

java.lang.Object
  extended byorg.apache.geronimo.samples.daytrader.QuoteDataBean
All Implemented Interfaces:
java.io.Serializable

public class QuoteDataBean
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
QuoteDataBean()
           
QuoteDataBean(java.lang.String symbol)
           
QuoteDataBean(java.lang.String symbol, java.lang.String companyName, double volume, java.math.BigDecimal price, java.math.BigDecimal open, java.math.BigDecimal low, java.math.BigDecimal high, double change)
           
 
Method Summary
 double getChange()
          Gets the change
 java.lang.String getCompanyName()
          Gets the companyName
 java.math.BigDecimal getHigh()
          Gets the high
 java.math.BigDecimal getLow()
          Gets the low
 java.math.BigDecimal getOpen()
          Gets the open
 java.math.BigDecimal getPrice()
          Gets the price
static QuoteDataBean getRandomInstance()
           
 java.lang.String getSymbol()
          Gets the symbol
 double getVolume()
          Gets the volume
 void print()
           
 void setChange(double change)
          Sets the change
 void setCompanyName(java.lang.String companyName)
          Sets the companyName
 void setHigh(java.math.BigDecimal high)
          Sets the high
 void setLow(java.math.BigDecimal low)
          Sets the low
 void setOpen(java.math.BigDecimal open)
          Sets the open
 void setPrice(java.math.BigDecimal price)
          Sets the price
 void setSymbol(java.lang.String symbol)
          Sets the symbol
 void setVolume(double volume)
          Sets the volume
 java.lang.String toHTML()
           
 java.lang.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(java.lang.String symbol,
                     java.lang.String companyName,
                     double volume,
                     java.math.BigDecimal price,
                     java.math.BigDecimal open,
                     java.math.BigDecimal low,
                     java.math.BigDecimal high,
                     double change)

QuoteDataBean

public QuoteDataBean(java.lang.String symbol)
Method Detail

getRandomInstance

public static QuoteDataBean getRandomInstance()

toString

public java.lang.String toString()

toHTML

public java.lang.String toHTML()

print

public void print()

getSymbol

public java.lang.String getSymbol()
Gets the symbol

Returns:
Returns a String

setSymbol

public void setSymbol(java.lang.String symbol)
Sets the symbol

Parameters:
symbol - The symbol to set

getCompanyName

public java.lang.String getCompanyName()
Gets the companyName

Returns:
Returns a String

setCompanyName

public void setCompanyName(java.lang.String companyName)
Sets the companyName

Parameters:
companyName - The companyName to set

getPrice

public java.math.BigDecimal getPrice()
Gets the price

Returns:
Returns a BigDecimal

setPrice

public void setPrice(java.math.BigDecimal price)
Sets the price

Parameters:
price - The price to set

getOpen

public java.math.BigDecimal getOpen()
Gets the open

Returns:
Returns a BigDecimal

setOpen

public void setOpen(java.math.BigDecimal open)
Sets the open

Parameters:
open - The open to set

getLow

public java.math.BigDecimal getLow()
Gets the low

Returns:
Returns a BigDecimal

setLow

public void setLow(java.math.BigDecimal low)
Sets the low

Parameters:
low - The low to set

getHigh

public java.math.BigDecimal getHigh()
Gets the high

Returns:
Returns a BigDecimal

setHigh

public void setHigh(java.math.BigDecimal high)
Sets the high

Parameters:
high - The high to set

getChange

public double getChange()
Gets the change

Returns:
Returns a double

setChange

public void setChange(double change)
Sets the change

Parameters:
change - The change 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-2006 Apache Software Foundation. All Rights Reserved.