Class GlobalXactId
- java.lang.Object
-
- org.apache.derby.iapi.store.access.GlobalXact
-
- org.apache.derby.impl.store.raw.xact.GlobalXactId
-
- All Implemented Interfaces:
java.io.Externalizable,java.io.Serializable,Formatable,TypedFormat,GlobalTransactionId
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
Constructors Constructor Description GlobalXactId()Public Methods of Formatable interface:GlobalXactId(int format_id, byte[] global_id, byte[] branch_id)Constructors for This class:
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) byte[]getBranchQualifier()Obtain the transaction branch qualifier as an array of bytes.(package private) intgetFormat_Id()Obtain the format id part of the GlobalTransactionId.(package private) byte[]getGlobalTransactionId()Obtain the global transaction identifier as an array of bytes.intgetTypeFormatId()Return my format identifier.voidreadExternal(java.io.ObjectInput in)Read this invoidwriteExternal(java.io.ObjectOutput out)Write this out.-
Methods inherited from class org.apache.derby.iapi.store.access.GlobalXact
equals, hashCode, toString
-
-
-
-
Method Detail
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOExceptionWrite this out.- Specified by:
writeExternalin interfacejava.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.ClassNotFoundExceptionRead this in- Specified by:
readExternalin interfacejava.io.Externalizable- Throws:
java.io.IOException- error reading from log streamjava.lang.ClassNotFoundException- log stream corrupted
-
getTypeFormatId
public int getTypeFormatId()
Return my format identifier.- Specified by:
getTypeFormatIdin interfaceTypedFormat- Returns:
- The identifier. (A UUID stuffed in an array of 16 bytes).
-
getFormat_Id
int getFormat_Id()
Obtain the format id part of the GlobalTransactionId.- Returns:
- format identifier, 0 means the OSI CCR format
-
getGlobalTransactionId
byte[] getGlobalTransactionId()
Obtain the global transaction identifier as an array of bytes.- Returns:
- a byte array containing the global transaction identifier
-
getBranchQualifier
byte[] getBranchQualifier()
Obtain the transaction branch qualifier as an array of bytes.- Returns:
- a byte array containing the branch qualifier of the transaction
-
-