org.jboss.jca.core.tx.jbossts
Class XidWrapperImpl

java.lang.Object
  extended by org.jboss.jca.core.tx.jbossts.XidWrapperImpl
All Implemented Interfaces:
Xid, org.jboss.jca.core.spi.transaction.xa.XidWrapper

public class XidWrapperImpl
extends Object
implements org.jboss.jca.core.spi.transaction.xa.XidWrapper

A XidWrapper.

Author:
Weston Price, Jesper Pedersen

Field Summary
 
Fields inherited from interface javax.transaction.xa.Xid
MAXBQUALSIZE, MAXGTRIDSIZE
 
Constructor Summary
XidWrapperImpl(Xid xid, boolean pad, String jndiName)
          Creates a new XidWrapperImpl instance.
 
Method Summary
 boolean equals(Object object)
          
 byte[] getBranchQualifier()
          
 int getFormatId()
          
 byte[] getGlobalTransactionId()
          
 String getJndiName()
          
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XidWrapperImpl

public XidWrapperImpl(Xid xid,
                      boolean pad,
                      String jndiName)
Creates a new XidWrapperImpl instance.

Parameters:
xid - The Xid instances
pad - Should the branch qualifier be padded
jndiName - The JNDI name
Method Detail

getBranchQualifier

public byte[] getBranchQualifier()

Specified by:
getBranchQualifier in interface Xid

getFormatId

public int getFormatId()

Specified by:
getFormatId in interface Xid

getGlobalTransactionId

public byte[] getGlobalTransactionId()

Specified by:
getGlobalTransactionId in interface Xid

getJndiName

public String getJndiName()

Specified by:
getJndiName in interface org.jboss.jca.core.spi.transaction.xa.XidWrapper

equals

public boolean equals(Object object)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2008 Red Hat Middleware LLC (http://www.jboss.com/)