public static class Transaction.Identifier extends java.lang.Object
An identifier for the current transaction. Transaction identifiers are unique per JVM instance. They are not unique across JVM restarts.
Multiple transaction identifiers created in the same transaction will return the same hash code, and comparisons using the equals() method will return true.
Transaction identifiers are provided for logging purposes only.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object id)
Determines if two transaction identifiers are the same.
|
int |
hashCode()
Returns a hash value for this transaction identifier.
|
java.lang.String |
toString()
Returns a string representation of a transaction identifier.
|
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object id)
equals
in class java.lang.Object
id
- Transaction identifier to comparepublic int hashCode()
hashCode
in class java.lang.Object