com.ibm.etill.framework.payapi
Class BatchKey

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

public final class BatchKey
extends GenericKey

BatchKey objects serve as Hashtable keys that uniquely identify Batch objects. Some of the methods provided by the Framework return Hashtables whose keys are BatchKey objects.

See Also:
Hashtable, Serialized Form

Constructor Summary
BatchKey(String merchantNumber, String batchNumber)
          Constructs a BatchKey object based on the input merchant number and batch number.
 
Method Summary
 String getBatchNumber()
          Returns the batch number with which this BatchKey object was created.
 String getMerchantNumber()
          Returns the merchant number with which this BatchKey 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

BatchKey

public BatchKey(String merchantNumber,
                String batchNumber)
Constructs a BatchKey object based on the input merchant number and batch number.
Parameters:
merchantNumber - a String containing the merchant number of the merchant for which this batch was created.
batchNumber - a String containing the batch number
Method Detail

getMerchantNumber

public String getMerchantNumber()
Returns the merchant number with which this BatchKey object was created.
Returns:
String - the merchant number

getBatchNumber

public String getBatchNumber()
Returns the batch number with which this BatchKey object was created.
Returns:
String - the batch 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.