WebLogic Server 6.0 Code Examples, BEA Systems, Inc.

examples.cluster.ejb.teller
Class TellerResult

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

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

This class reflects the results of a deposit, withdrawal, or transfer transaction. Results are for account 1, account 2, and the server the teller was on.

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

Field Summary
 AccountResult account1Result
           
 AccountResult account2Result
           
 java.lang.String tellerServer
           
 
Constructor Summary
TellerResult()
          Creates a new TellerResult object.
TellerResult(java.lang.String tellerServer, AccountResult accountResult)
          Creates a new TellerResult object.
TellerResult(java.lang.String tellerServer, AccountResult account1Result, AccountResult account2Result)
          Creates a new TellerResult object.
 
Method Summary
 AccountResult getAccount1Result()
          Returns the results for account 1 in an AccountResult object.
 AccountResult getAccount2Result()
          Returns the results for account 2 in an AccountResult object.
 java.lang.String getTellerServer()
          Returns the teller server name.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

account1Result

public AccountResult account1Result

account2Result

public AccountResult account2Result

tellerServer

public java.lang.String tellerServer
Constructor Detail

TellerResult

public TellerResult()
Creates a new TellerResult object.

TellerResult

public TellerResult(java.lang.String tellerServer,
                    AccountResult accountResult)
Creates a new TellerResult object.
Parameters:
tellerServer - String Teller server name (the Cluster member)
account1Result - AccountResult account 1 result

TellerResult

public TellerResult(java.lang.String tellerServer,
                    AccountResult account1Result,
                    AccountResult account2Result)
Creates a new TellerResult object.
Parameters:
tellerServer - String Teller server name (the Cluster member)
account1Result - AccountResult account 1 result
account2Result - AccountResult account 2 result
Method Detail

getAccount1Result

public AccountResult getAccount1Result()
Returns the results for account 1 in an AccountResult object.
Returns:
AccountResult Results for account 1

getAccount2Result

public AccountResult getAccount2Result()
Returns the results for account 2 in an AccountResult object.
Returns:
AccountResult Results for account 2

getTellerServer

public java.lang.String getTellerServer()
Returns the teller server name.
Returns:
String Teller server name

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

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