org.apache.derby.impl.store.raw.xact
Class GlobalXactId

java.lang.Object
  extended byorg.apache.derby.iapi.store.access.GlobalXact
      extended byorg.apache.derby.impl.store.raw.xact.GlobalXactId
All Implemented Interfaces:
java.io.Externalizable, Formatable, GlobalTransactionId, java.io.Serializable, TypedFormat

public class GlobalXactId
extends GlobalXact
implements GlobalTransactionId

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.derby.iapi.store.access.GlobalXact
branch_id, format_id, global_id
 
Constructor Summary
GlobalXactId()
          Public Methods of Formatable interface:
GlobalXactId(int format_id, byte[] global_id, byte[] branch_id)
          Constructors for This class:
 
Method Summary
 byte[] getBranchQualifier()
          Obtain the transaction branch qualifier part of the GlobalTransactionId in a byte array.
 int getFormat_Id()
          Public Methods of This class:
 byte[] getGlobalTransactionId()
          Obtain the global transaction identifier part of GlobalTransactionId as an array of bytes.
 int getTypeFormatId()
          Return my format identifier.
 void readExternal(java.io.ObjectInput in)
          Read this in
 void writeExternal(java.io.ObjectOutput out)
          Write this out.
 
Methods inherited from class org.apache.derby.iapi.store.access.GlobalXact
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GlobalXactId

public GlobalXactId(int format_id,
                    byte[] global_id,
                    byte[] branch_id)
Constructors for This class:


GlobalXactId

public GlobalXactId()
Public Methods of Formatable interface:

Method Detail

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Write this out.

Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException - error writing to log stream

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Read this in

Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException - error reading from log stream
java.lang.ClassNotFoundException - log stream corrupted

getTypeFormatId

public int getTypeFormatId()
Return my format identifier.

Specified by:
getTypeFormatId in interface TypedFormat
Returns:
The identifier. (A UUID stuffed in an array of 16 bytes).

getFormat_Id

public int getFormat_Id()
Public Methods of This class:

Specified by:
getFormat_Id in interface GlobalTransactionId
Returns:
Format identifier. O means the OSI CCR format.

getGlobalTransactionId

public byte[] getGlobalTransactionId()
Description copied from interface: GlobalTransactionId
Obtain the global transaction identifier part of GlobalTransactionId as an array of bytes.

Specified by:
getGlobalTransactionId in interface GlobalTransactionId
Returns:
A byte array containing the global transaction identifier.

getBranchQualifier

public byte[] getBranchQualifier()
Description copied from interface: GlobalTransactionId
Obtain the transaction branch qualifier part of the GlobalTransactionId in a byte array.

Specified by:
getBranchQualifier in interface GlobalTransactionId
Returns:
A byte array containing the branch qualifier of the transaction.

Built on Tue 2006-10-10 19:23:47+0200, from revision exported

Apache Derby V10.1 Engine Documentation - Copyright © 1997,2005 The Apache Software Foundation or its licensors, as applicable.