All Examples  All EJB Examples  This Package

Class examples.ejb.basic.statefulSession.TradeResult

java.lang.Object
    |
    +----examples.ejb.basic.statefulSession.TradeResult

public final class TradeResult
extends java.lang.Object
implements java.io.Serializable
This class reflects the results of a buy/sell transaction.


Variable Index

 o BUY
 
 o SELL
 

Constructor Index

 o TradeResult(int, double, int)
Returns the number of shares and sales price for a buy or sell transaction in a TradeResult object.

Method Index

 o getActionTaken()
 
 o getNumberTraded()
 
 o getPrice()
 
 o toString()
 

Field Detail

 o SELL
public static final int SELL
 o BUY
public static final int BUY

Constructor Detail

 o TradeResult
public TradeResult(int numberTraded,
                   double price,
                   int action)
          Returns the number of shares and sales price for a buy or sell transaction in a TradeResult object.
Parameters:
numberTraded - int Number of shares traded
price - double Price shares sold at
action - int Action taken

Method Detail

 o getNumberTraded
public int getNumberTraded()
 o getActionTaken
public int getActionTaken()
 o getPrice
public double getPrice()
 o toString
public java.lang.String toString()
Overrides:
toString in class java.lang.Object

All Examples  All EJB Examples  This Package