examples.ejb.basic.statefulSession
Class TradeResult
java.lang.Object
|
+--examples.ejb.basic.statefulSession.TradeResult
- All Implemented Interfaces:
- java.io.Serializable
- public final class TradeResult
- extends java.lang.Object
- implements java.io.Serializable
This class reflects the results of a buy/sell transaction.
- Author:
- Copyright (c) 1998 by WebLogic, Inc. All Rights Reserved., Copyright (c) 1998-2000 by BEA Systems, Inc. All Rights Reserved.
Field Summary |
static int |
BUY
|
static int |
SELL
|
Constructor Summary |
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. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BUY
public static final int BUY
SELL
public static final int SELL
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 tradedprice
- double Price shares sold ataction
- int Action taken
getActionTaken
public int getActionTaken()
getNumberTraded
public int getNumberTraded()
getPrice
public double getPrice()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2000 BEA Systems, Inc. All Rights Reserved.