org.jboss.tm
Class XidFactory

java.lang.Object
  extended byorg.jboss.tm.XidFactory

public class XidFactory
extends java.lang.Object

XidFactory.java Created: Sat Jun 15 19:01:18 2002


Constructor Summary
XidFactory()
           
 
Method Summary
 long extractLocalIdFrom(byte[] globalId)
          Extracts the local id contained in a global id.
 java.lang.String getBaseGlobalId()
          mbean get-set pair for field BaseGlobalId Get the value of BaseGlobalId
 long getGlobalIdNumber()
          mbean get-set pair for field globalIdNumber Get the value of globalIdNumber
 XidFactoryMBean getInstance()
          mbean get-set pair for field instance Get the value of instance
 boolean isPad()
          mbean get-set pair for field pad Get the value of pad
 XidImpl (src) newBranch(XidImpl (src)  xid, long branchIdNum)
          Describe newBranch method here.
 XidImpl (src) newXid()
          Describe newXid method here.
 void setBaseGlobalId(java.lang.String baseGlobalId)
          Set the value of BaseGlobalId
 void setGlobalIdNumber(long globalIdNumber)
          Set the value of globalIdNumber
 void setPad(boolean pad)
          Set the value of pad
 java.lang.String toString(Xid (src)  xid)
          Describe toString method here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XidFactory

public XidFactory()
Method Detail

getBaseGlobalId

public java.lang.String getBaseGlobalId()
mbean get-set pair for field BaseGlobalId Get the value of BaseGlobalId

Returns:
value of BaseGlobalId

setBaseGlobalId

public void setBaseGlobalId(java.lang.String baseGlobalId)
Set the value of BaseGlobalId


getGlobalIdNumber

public long getGlobalIdNumber()
mbean get-set pair for field globalIdNumber Get the value of globalIdNumber

Returns:
value of globalIdNumber

setGlobalIdNumber

public void setGlobalIdNumber(long globalIdNumber)
Set the value of globalIdNumber

Parameters:
globalIdNumber - Value to assign to globalIdNumber

isPad

public boolean isPad()
mbean get-set pair for field pad Get the value of pad

Returns:
value of pad

setPad

public void setPad(boolean pad)
Set the value of pad

Parameters:
pad - Value to assign to pad

getInstance

public XidFactoryMBean getInstance()
mbean get-set pair for field instance Get the value of instance

Returns:
value of instance

newXid

public XidImpl (src)  newXid()
Describe newXid method here.

Returns:
a XidImpl value

newBranch

public XidImpl (src)  newBranch(XidImpl (src)  xid,
                         long branchIdNum)
Describe newBranch method here.

Parameters:
xid - a XidImpl value
branchIdNum - a long value
Returns:
a XidImpl value

extractLocalIdFrom

public long extractLocalIdFrom(byte[] globalId)
Extracts the local id contained in a global id.

Parameters:
globalId - a global id
Returns:
the local id extracted from the global id

toString

public java.lang.String toString(Xid (src)  xid)
Describe toString method here.

Parameters:
xid - a Xid value
Returns:
a String value