Class GlobalXactId
java.lang.Object
org.apache.derby.iapi.store.access.GlobalXact
org.apache.derby.impl.store.raw.xact.GlobalXactId
- All Implemented Interfaces:
Externalizable, Serializable, Formatable, TypedFormat, GlobalTransactionId
- See Also:
-
Field Summary
Fields inherited from class GlobalXact
branch_id, format_id, global_id -
Constructor Summary
ConstructorsConstructorDescriptionPublic Methods of Formatable interface:GlobalXactId(int format_id, byte[] global_id, byte[] branch_id) Constructors for This class: -
Method Summary
Modifier and TypeMethodDescription(package private) byte[]Obtain the transaction branch qualifier as an array of bytes.(package private) intObtain the format id part of the GlobalTransactionId.(package private) byte[]Obtain the global transaction identifier as an array of bytes.intReturn my format identifier.voidRead this invoidWrite this out.Methods inherited from class GlobalXact
equals, hashCode, toString
-
Constructor Details
-
GlobalXactId
GlobalXactId(int format_id, byte[] global_id, byte[] branch_id) Constructors for This class: -
GlobalXactId
public GlobalXactId()Public Methods of Formatable interface:
-
-
Method Details
-
writeExternal
Write this out.- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException- error writing to log stream
-
readExternal
Read this in- Specified by:
readExternalin interfaceExternalizable- Throws:
IOException- error reading from log streamClassNotFoundException- 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
-