WebLogic Server 6.0 Code Examples, BEA Systems, Inc.

examples.cluster.ejb.account
Class AccountResult

java.lang.Object
  |
  +--examples.cluster.ejb.account.AccountResult
All Implemented Interfaces:
java.io.Serializable

public final class AccountResult
extends java.lang.Object
implements java.io.Serializable

This class is used to return information and the results of a balance inquiry, deposit, withdrawal or transfer transaction.

Author:
Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.

Field Summary
 double balance
           
 java.lang.String server
           
 
Constructor Summary
AccountResult()
          Default AccountResult object creator.
AccountResult(java.lang.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.
 
Method Summary
 double getBalance()
          Returns the account balance from an AccountResult object.
 java.lang.String getServer()
          Returns the server name from an AccountResult object.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

balance

public double balance

server

public java.lang.String server
Constructor Detail

AccountResult

public AccountResult()
Default AccountResult object creator.

AccountResult

public AccountResult(java.lang.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
Method Detail

getBalance

public double getBalance()
Returns the account balance from an AccountResult object.
Returns:
Double account balance

getServer

public java.lang.String getServer()
Returns the server name from an AccountResult object.
Returns:
String server name

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

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