Top Fields Constructors Methods
org.apache.derby.impl.store.raw.xact

public Class GlobalXactId

extends GlobalXact
implements GlobalTransactionId
Class Inheritance
All Implemented Interfaces
org.apache.derby.iapi.store.raw.GlobalTransactionId, org.apache.derby.iapi.services.io.Formatable, org.apache.derby.iapi.services.io.TypedFormat, java.io.Externalizable, java.io.Serializable
Imports
org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.iapi.services.io.StoredFormatIds, org.apache.derby.iapi.store.raw.GlobalTransactionId, org.apache.derby.iapi.store.access.GlobalXact, java.io.ObjectOutput, .ObjectInput, .IOException

Field Summary

Inherited from org.apache.derby.iapi.store.access.GlobalXact:
branch_idformat_idglobal_id

Constructor Summary

AccessConstructor and Description
pack-priv
GlobalXactId(int format_id, byte[] global_id, byte[] branch_id)

Constructors for This class:

public
GlobalXactId()

Public Methods of Formatable interface:

Method Summary

Modifier and TypeMethod and Description
pack-priv byte[]

Returns:

a byte array containing the branch qualifier of the transaction
getBranchQualifier
()

Obtain the transaction branch qualifier as an array of bytes.

pack-priv int

Returns:

format identifier, 0 means the OSI CCR format
getFormat_Id
()

Obtain the format id part of the GlobalTransactionId.

pack-priv byte[]

Returns:

a byte array containing the global transaction identifier
getGlobalTransactionId
()

Obtain the global transaction identifier as an array of bytes.

public int
public void
readExternal(ObjectInput
the stream to read data from in order to restore the object
in
)

Implements java.io.Externalizable.readExternal.

Read this in

public void
writeExternal(ObjectOutput
the stream to write the object to
out
)

Implements java.io.Externalizable.writeExternal.

Write this out.

Inherited from org.apache.derby.iapi.store.access.GlobalXact:
equalshashCodetoString

Constructor Detail

GlobalXactIdback to summary
pack-priv GlobalXactId(int format_id, byte[] global_id, byte[] branch_id)

Constructors for This class:

GlobalXactIdback to summary
public GlobalXactId()

Public Methods of Formatable interface:

Method Detail

getBranchQualifierback to summary
pack-priv byte[] getBranchQualifier()

Obtain the transaction branch qualifier as an array of bytes.

Returns:byte[]

a byte array containing the branch qualifier of the transaction

getFormat_Idback to summary
pack-priv int getFormat_Id()

Obtain the format id part of the GlobalTransactionId.

Returns:int

format identifier, 0 means the OSI CCR format

getGlobalTransactionIdback to summary
pack-priv byte[] getGlobalTransactionId()

Obtain the global transaction identifier as an array of bytes.

Returns:byte[]

a byte array containing the global transaction identifier

getTypeFormatIdback to summary
public int getTypeFormatId()

Implements org.apache.derby.iapi.services.io.TypedFormat.getTypeFormatId.

Return my format identifier.

Returns:int

Doc from org.apache.derby.iapi.services.io.TypedFormat.getTypeFormatId.

The identifier. (A UUID stuffed in an array of 16 bytes).

readExternalback to summary
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException

Implements java.io.Externalizable.readExternal.

Read this in

Parameters
in:ObjectInput

Doc from java.io.Externalizable.readExternal.

the stream to read data from in order to restore the object

Exceptions
IOException:
error reading from log stream
ClassNotFoundException:
log stream corrupted
writeExternalback to summary
public void writeExternal(ObjectOutput out) throws IOException

Implements java.io.Externalizable.writeExternal.

Write this out.

Parameters
out:ObjectOutput

Doc from java.io.Externalizable.writeExternal.

the stream to write the object to

Exceptions
IOException:
error writing to log stream