All Examples All Cluster Examples This Example This Package
Class examples.cluster.ejb.account.AccountResult
java.lang.Object
|
+----examples.cluster.ejb.account.AccountResult
- public final class AccountResult
- extends Object
- implements Serializable
This class is used to return information and the results of a
of a balance inquiry, deposit, withdrawal or transfer transaction.
- Author:
- Copyright (c) 1999 by BEA WebXpress, Inc. All Rights Reserved.
-
balance
-
-
server
-
-
AccountResult()
- Default AccountResult object creator.
-
AccountResult(String, double)
- Creates an AccountResult object with
the server (the name of the Cluster member) where the EJBean is located
and the account balance.
-
getBalance()
- Returns the account balance
from an AccountResult object.
-
getServer()
- Returns the server name
from an AccountResult object.
server
public String server
balance
public double balance
AccountResult
public AccountResult()
- Default AccountResult object creator.
- Returns:
- AccountResult
AccountResult
public AccountResult(String server,
double balance)
- Creates an AccountResult object with
the server (the name of the Cluster member) where the EJBean is located
and the account balance.
- Parameters:
- server - String Server name (the Cluster member)
- balance - double Account balance
- Returns:
- AccountResult
getServer
public String getServer()
- Returns the server name
from an AccountResult object.
- Returns:
- String server name
getBalance
public double getBalance()
- Returns the account balance
from an AccountResult object.
- Returns:
- double Account balance
All Examples All Cluster Examples This Example This Package