com.ibm.etill.framework.payapi
Class TransactionKey

java.lang.Object
  |
  +--com.ibm.etill.framework.supervisor.GenericKey
        |
        +--com.ibm.etill.framework.payapi.TransactionKey
All Implemented Interfaces:
Serializable

public final class TransactionKey
extends GenericKey

TransactionKey objects serve as Hashtable keys that uniquely identify Payment and Credit objects. Some of the methods provided by the Framework return Hashtables whose keys are TransactionKey objects.

See Also:
Hashtable, Serialized Form

Constructor Summary
TransactionKey(String orderNumber, String transactionNumber)
          Constructs a TransactionKey object based on the input order number and transaction number.
 
Method Summary
 String getOrderNumber()
          Returns the order number with which this TransactionKey object was created.
 String getTransactionNumber()
          Returns the transaction number with which this TransactionKey object was created.
 String toString()
          Returns a string representation of this object for tracing purposes.
 
Methods inherited from class com.ibm.etill.framework.supervisor.GenericKey
calculateHashCode, calculateHashCode11, equals, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransactionKey

public TransactionKey(String orderNumber,
                      String transactionNumber)
Constructs a TransactionKey object based on the input order number and transaction number.
Parameters:
orderNubmer - a String containing the order number of the Order object to which this transaction belongs.
transactionNumber - a String containing the Payment or Credit number.
Method Detail

getOrderNumber

public String getOrderNumber()
Returns the order number with which this TransactionKey object was created.
Returns:
String - the order number

getTransactionNumber

public String getTransactionNumber()
Returns the transaction number with which this TransactionKey object was created.
Returns:
String - the transaction number

toString

public String toString()
Returns a string representation of this object for tracing purposes.
Overrides:
toString in class GenericKey
Returns:
String - a string representation of the key elements of this object.