oracle.jdbc.xa
Class OracleXid

oracle.jdbc.xa.OracleXid

public class OracleXid
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
static int MAXBQUALSIZE
           
static int MAXGTRIDSIZE
           
 
Constructor Summary
OracleXid(int fId, byte[] gId, byte[] bId)
          OracleXid() -- The constructor that constructs an OracleXid with given formatId, global transacrion Id and branch qualifier.
OracleXid(int fId, byte[] gId, byte[] bId, byte[] context)
          OracleXid() -- The constructor that constructs an OracleXid with given formatId, global transacrion Id and branch qualifier, and transaction context.
 
Method Summary
 byte[] getBranchQualifier()
           
 int getFormatId()
           
 byte[] getGlobalTransactionId()
           
 

Field Detail

MAXGTRIDSIZE

public static final int MAXGTRIDSIZE

MAXBQUALSIZE

public static final int MAXBQUALSIZE
Constructor Detail

OracleXid

public OracleXid(int fId,
                 byte[] gId,
                 byte[] bId)
          throws oracle.jdbc.xa.XAException
OracleXid() -- The constructor that constructs an OracleXid with given formatId, global transacrion Id and branch qualifier.

Parameters:
fId - format ID
gId - global transaction ID
bId - branch Qualifier
Throws:
oracle.jdbc.xa.XAException - if the size of gId or bId is more than 64 bytes

OracleXid

public OracleXid(int fId,
                 byte[] gId,
                 byte[] bId,
                 byte[] context)
          throws oracle.jdbc.xa.XAException
OracleXid() -- The constructor that constructs an OracleXid with given formatId, global transacrion Id and branch qualifier, and transaction context.

Parameters:
fId - format ID
gId - global transaction ID
bId - branch Qualifier
Throws:
oracle.jdbc.xa.XAException - if the size of gId or bId is more than 64 bytes
Method Detail

getFormatId

public int getFormatId()

getGlobalTransactionId

public byte[] getGlobalTransactionId()

getBranchQualifier

public byte[] getBranchQualifier()