|
||||||||||
| PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.tm.XidImpl
This object encapsulates the ID of a transaction. This implementation is immutable and always serializable at runtime.
TransactionImpl (src) ,
Serialized Form| Field Summary | |
static int |
JBOSS_FORMAT_ID
|
| Fields inherited from interface javax.transaction.xa.Xid (src) |
MAXBQUALSIZE, MAXGTRIDSIZE |
| Constructor Summary | |
XidImpl(int formatId,
byte[] globalId,
byte[] branchId,
int hash,
long localId)
Create a new instance. |
|
XidImpl(XidImpl (src) xidImpl,
byte[] branchId)
Create a new branch of an existing global transaction ID. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Compare for equality. |
byte[] |
getBranchQualifier()
Return the branch qualifier of this transaction. |
int |
getFormatId()
Return the format identifier of this transaction. |
byte[] |
getGlobalTransactionId()
Return the global transaction id of this transaction. |
LocalId (src) |
getLocalId()
Return a LocalId instance that identifies this transaction within the JBoss server. |
long |
getLocalIdValue()
Return the local id that identifies this transaction within the JBoss server. |
GlobalId (src) |
getTrulyGlobalId()
Return a GlobalId instance that identifies this transaction in a distributed environment. |
static boolean |
getTrulyGlobalIdsEnabled()
Getter for class variable trulyGlobalIdsEnabled. |
int |
hashCode()
|
boolean |
sameTransaction(XidImpl (src) other)
Compare for same transaction. |
static void |
setTrulyGlobalIdsEnabled(boolean newValue)
Setter for class variable trulyGlobalIdsEnabled. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int JBOSS_FORMAT_ID
| Constructor Detail |
public XidImpl(int formatId,
byte[] globalId,
byte[] branchId,
int hash,
long localId)
public XidImpl(XidImpl (src) xidImpl,
byte[] branchId)
xidImpl - The transaction ID to create a new branch of.branchId - The ID of the new branch.| Method Detail |
public static void setTrulyGlobalIdsEnabled(boolean newValue)
public static boolean getTrulyGlobalIdsEnabled()
public byte[] getGlobalTransactionId()
getGlobalTransactionId in interface Xid (src) public byte[] getBranchQualifier()
getBranchQualifier in interface Xid (src) public int getFormatId()
getFormatId in interface Xid (src) public boolean equals(java.lang.Object obj)
public int hashCode()
public java.lang.String toString()
public long getLocalIdValue()
public LocalId (src) getLocalId()
public GlobalId (src) getTrulyGlobalId()
public boolean sameTransaction(XidImpl (src) other)
|
||||||||||
| PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||