All Examples  All Cluster Examples  This Example  This Package

Class examples.cluster.ejb.teller.TellerResult

java.lang.Object
   |
   +----examples.cluster.ejb.teller.TellerResult

public final class TellerResult
extends Object
implements 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.

Variable Index

 o account1Result
 o account2Result
 o tellerServer

Constructor Index

 o TellerResult()
Creates a new TellerResult object.
 o TellerResult(String, AccountResult)
Creates a new TellerResult object.
 o TellerResult(String, AccountResult, AccountResult)
Creates a new TellerResult object.

Method Index

 o getAccount1Result()
Returns the results for account 1 in an AccountResult object.
 o getAccount2Result()
Returns the results for account 2 in an AccountResult object.
 o getTellerServer()
Returns the teller server name.

Variables

 o tellerServer
 public String tellerServer
 o account1Result
 public AccountResult account1Result
 o account2Result
 public AccountResult account2Result

Constructors

 o TellerResult
 public TellerResult()
Creates a new TellerResult object.

Returns:
TellerResult
 o TellerResult
 public TellerResult(String tellerServer,
                     AccountResult accountResult)
Creates a new TellerResult object.

Parameters:
tellerServer - String Teller server name (the Cluster member)
account1Result - AccountResult Account 1 result
Returns:
TellerResult
 o TellerResult
 public TellerResult(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
Returns:
TellerResult

Methods

 o getTellerServer
 public String getTellerServer()
Returns the teller server name.

Returns:
String Teller server name
 o getAccount1Result
 public AccountResult getAccount1Result()
Returns the results for account 1 in an AccountResult object.

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

Returns:
AccountResult Results for account 2

All Examples  All Cluster Examples  This Example  This Package