org.apache.geronimo.transaction.manager
Class XidImpl
java.lang.Object
org.apache.geronimo.transaction.manager.XidImpl
- All Implemented Interfaces:
- Serializable, Xid
public class XidImpl
- extends Object
- implements Xid, Serializable
Unique id for a transaction.
- See Also:
- Serialized Form
|
Constructor Summary |
XidImpl(byte[] globalId)
Constructor taking a global id (for the main transaction) |
XidImpl(int formatId,
byte[] globalId,
byte[] branchId)
|
XidImpl(Xid global,
byte[] branch)
Constructor for a branch id |
XidImpl
public XidImpl(byte[] globalId)
- Constructor taking a global id (for the main transaction)
- Parameters:
globalId - the global transaction id
XidImpl
public XidImpl(Xid global,
byte[] branch)
- Constructor for a branch id
- Parameters:
global - the xid of the global transaction this branch belongs tobranch - the branch id
XidImpl
public XidImpl(int formatId,
byte[] globalId,
byte[] branchId)
getFormatId
public int getFormatId()
- Specified by:
getFormatId in interface Xid
getGlobalTransactionId
public byte[] getGlobalTransactionId()
- Specified by:
getGlobalTransactionId in interface Xid
getBranchQualifier
public byte[] getBranchQualifier()
- Specified by:
getBranchQualifier in interface Xid
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2006 Apache Software Foundation. All Rights Reserved.