bitronix.tm.utils
Class Decoder

java.lang.Object
  extended by bitronix.tm.utils.Decoder

public class Decoder
extends java.lang.Object

Constant to string decoder.

© Bitronix Software

Author:
lorban

Constructor Summary
Decoder()
           
 
Method Summary
static java.lang.String collectResourcesNames(java.util.Collection resources)
          Create a String representation of a list of XAResourceHolders.
static java.lang.String decodeHeaderState(byte state)
           
static java.lang.String decodePrepareVote(int vote)
           
static java.lang.String decodeStatus(int status)
           
static java.lang.String decodeXAExceptionErrorCode(javax.transaction.xa.XAException ex)
           
static java.lang.String decodeXAResourceFlag(int flag)
           
static java.lang.String decodeXAStatefulHolderState(int state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Decoder

public Decoder()
Method Detail

decodeXAExceptionErrorCode

public static java.lang.String decodeXAExceptionErrorCode(javax.transaction.xa.XAException ex)

decodeStatus

public static java.lang.String decodeStatus(int status)

decodeXAResourceFlag

public static java.lang.String decodeXAResourceFlag(int flag)

decodePrepareVote

public static java.lang.String decodePrepareVote(int vote)

decodeHeaderState

public static java.lang.String decodeHeaderState(byte state)

decodeXAStatefulHolderState

public static java.lang.String decodeXAStatefulHolderState(int state)

collectResourcesNames

public static java.lang.String collectResourcesNames(java.util.Collection resources)
Create a String representation of a list of XAResourceHolders. This String will contain each resource's unique name.

Parameters:
resources - a list of XAResourceHolders.
Returns:
a String representation of the list.