org.apache.derby.iapi.store.access
Class GlobalXact

java.lang.Object
  extended by org.apache.derby.iapi.store.access.GlobalXact
Direct Known Subclasses:
GlobalXactId, XAXactId

public abstract class GlobalXact
extends java.lang.Object

This abstract class represents a global transaction id which can be tested for equality against other transaction ids, which can be hashed into a hash table, and which can be output as a string.

This class has 2 direct subclasses.

The main reason for this class is to ensure that equality etc. works in a consistent way across both subclasses.


Field Summary
protected  byte[] branch_id
           
protected  int format_id
          Protected Fields of the class
protected  byte[] global_id
           
 
Constructor Summary
GlobalXact()
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 int hashCode()
          Provide a hashCode which is compatable with the equals() method.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

format_id

protected int format_id
Protected Fields of the class


global_id

protected byte[] global_id

branch_id

protected byte[] branch_id
Constructor Detail

GlobalXact

public GlobalXact()
Method Detail

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Provide a hashCode which is compatable with the equals() method.

Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

Built on Thu 2011-03-10 11:54:14+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.