Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.common.utils
Class XidImpl

java.lang.Object
  extended by 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

Field Summary
 byte[] bqual
           
 int fid
           
 byte[] gtrid
           
 
Fields inherited from interface javax.transaction.xa.Xid
MAXBQUALSIZE, MAXGTRIDSIZE
 
Constructor Summary
XidImpl(String id)
          Constructor mostly used in unit tests.
XidImpl(Xid xid)
          Copy constructor.
 
Method Summary
 boolean equals(Object other)
           
 byte[] getBranchQualifier()
           
 int getFormatId()
           
 byte[] getGlobalTransactionId()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fid

public final int fid

gtrid

public final byte[] gtrid

bqual

public final byte[] bqual
Constructor Detail

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
Method Detail

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.