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 org.apache.derby.iapi.store.access.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) int
Obtain the format id part of the GlobalTransactionId.(package private) byte[]
Obtain the global transaction identifier as an array of bytes.int
Return my format identifier.void
Read this invoid
Write this out.Methods inherited from class org.apache.derby.iapi.store.access.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:
writeExternal
in interfaceExternalizable
- Throws:
IOException
- error writing to log stream
-
readExternal
Read this in- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
- error reading from log streamClassNotFoundException
- log stream corrupted
-
getTypeFormatId
public int getTypeFormatId()Return my format identifier.- Specified by:
getTypeFormatId
in 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
-