com.sun.jts.CosTransactions
Class GlobalTID

java.lang.Object
  extended by com.sun.jts.CosTransactions.GlobalTID

public class GlobalTID
extends java.lang.Object

This class provides a wrapper for the otid_t class in the org.omg.CosTSInteroperation package to allow us to add operations.

Version:
0.01
Author:
Simon Holdsworth, IBM Corporation
See Also:

Constructor Summary
GlobalTID(org.omg.CosTransactions.otid_t otherTID)
          Creates a new global identifier which is a copy of the parameter.
GlobalTID(java.lang.String stid)
           
GlobalTID(Xid xid)
          Creates a new global identifier object.
 
Method Summary
 boolean equals(java.lang.Object other)
          Compares the two global identifiers.
 int hashCode()
          Returns a hash value for the global identifier.
 boolean isSameTID(org.omg.CosTransactions.otid_t otherTID)
           
 java.lang.String toString()
          Converts the global identifier to a string.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GlobalTID

public GlobalTID(org.omg.CosTransactions.otid_t otherTID)
Creates a new global identifier which is a copy of the parameter.

Parameters:
otherTID - The other global identifier.
See Also:

GlobalTID

public GlobalTID(Xid xid)
Creates a new global identifier object.

Parameters:
xid - The Xid object containing transaction id.

GlobalTID

public GlobalTID(java.lang.String stid)
Method Detail

equals

public final boolean equals(java.lang.Object other)
Compares the two global identifiers. Delegates to #isSameTIDInternal for the actual implementation to avoid comparison with otid_t that FindBugs doesn't like.

Overrides:
equals in class java.lang.Object
Parameters:
other - The other global identifier to compare.
Returns:
Indicates the two global identifiers are equal.
See Also:

isSameTID

public final boolean isSameTID(org.omg.CosTransactions.otid_t otherTID)

hashCode

public final int hashCode()
Returns a hash value for the global identifier.

Overrides:
hashCode in class java.lang.Object
Parameters:
-
Returns:
The hash value.
See Also:

toString

public final java.lang.String toString()
Converts the global identifier to a string.

Overrides:
toString in class java.lang.Object
Parameters:
-
Returns:
The string representation of the identifier.
See Also:


Copyright © 2012 GlassFish Community. All Rights Reserved.