WebLogic Server 6.0 Code Examples, BEA Systems, Inc.

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.
 
Method Summary
 int getActionTaken()
           
 int getNumberTraded()
           
 double getPrice()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BUY

public static final int BUY

SELL

public static final int SELL
Constructor Detail

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

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

Documentation is available at
http://e-docs.bea.com/wls/docs60

Copyright © 2000 BEA Systems, Inc. All Rights Reserved.