org.nuxeo.common.utils
Class XidImpl
java.lang.Object
org.nuxeo.common.utils.XidImpl
- All Implemented Interfaces:
- Serializable, Xid
public class XidImpl
- extends Object
- implements Xid, Serializable
A Serializable Xid
independent of the transaction manager
implementation.
- See Also:
- Serialized Form
fid
public final int fid
gtrid
public final byte[] gtrid
bqual
public final byte[] bqual
XidImpl
public XidImpl(Xid xid)
- Copy constructor.
- Parameters:
xid
- the xid to copy
XidImpl
public XidImpl(String id)
- Constructor mostly used in unit tests.
- Parameters:
id
- the global transaction id
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
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object other)
- Overrides:
equals
in class Object
Copyright © 2011 Nuxeo SAS. All Rights Reserved.