com.metamatrix.common.xa
Class TransactionID

java.lang.Object
  extended by com.metamatrix.common.xa.TransactionID
All Implemented Interfaces:
java.io.Serializable

public class TransactionID
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
TransactionID(java.lang.String id)
          Create a new instance of TranscationID
 
Method Summary
 boolean equals(java.lang.Object obj)
          Returns true if this object is equal to the other object.
 java.lang.String getID()
          Returns the ID value.
 int hashCode()
          Get hash code for object
 java.lang.String toString()
          Returns a string representation of an instance of this class.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransactionID

public TransactionID(java.lang.String id)
Create a new instance of TranscationID

Parameters:
id - uniqueID
Method Detail

getID

public java.lang.String getID()
Returns the ID value.

Returns:
String ID value

hashCode

public int hashCode()
Get hash code for object

Overrides:
hashCode in class java.lang.Object
Returns:
Hash code

equals

public boolean equals(java.lang.Object obj)
Returns true if this object is equal to the other object. Equality is based on the ID value.

Overrides:
equals in class java.lang.Object
Parameters:
obj - Object to compare with
Returns:
boolean indicating if objects are equal

toString

public java.lang.String toString()
Returns a string representation of an instance of this class.

Overrides:
toString in class java.lang.Object
Returns:
String representation of this instance.


Copyright © 2009. All Rights Reserved.