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 Object
implements Serializable
This class reflects the results of a buy/sell transaction.

Author:
Copyright (c) 1998 by WebLogic, Inc. All Rights Reserved.
Copyright (c) 1998-1999 by BEA WebXpress. All Rights Reserved.

Variable Index

 o numberTraded
 o priceSoldAt

Constructor Index

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

Variables

 o numberTraded
 public int numberTraded
 o priceSoldAt
 public double priceSoldAt

Constructors

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

Parameters:
n - int Number of shares traded
p - double Price shares sold at
Returns:
TradeResult

All Examples  All EJB Examples  This Package