tyrex.tm.impl
Class Util

java.lang.Object
  |
  +--tyrex.tm.impl.Util

final class Util
extends java.lang.Object

Utility methods.

Author:
Riad Mohammed

Constructor Summary
(package private) Util()
           
 
Method Summary
static java.lang.String fromClock(long clock)
          Converts a computer time into a string representation of time instant.
(package private) static java.lang.String getHeuristic(int heuristic)
          Returns the readable name for the specified heuristic
(package private) static java.lang.String getStatus(int status)
          Returns the readable name for the specified status.
(package private) static java.lang.String getXAException(javax.transaction.xa.XAException except)
          Retrusn the details of the xa exception
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

Util()
Method Detail

getStatus

static java.lang.String getStatus(int status)
Returns the readable name for the specified status.
Parameters:
status - The status
Returns:
The status

getHeuristic

static java.lang.String getHeuristic(int heuristic)
Returns the readable name for the specified heuristic
Parameters:
heuristic - The heuristic
Returns:
The heuristic

getXAException

static java.lang.String getXAException(javax.transaction.xa.XAException except)
Retrusn the details of the xa exception
Parameters:
except - The XA exception
Returns:
The XA exception

fromClock

public static java.lang.String fromClock(long clock)
Converts a computer time into a string representation of time instant. The string representation of time duration is the ISO 8601 extended format CCYY-MM-DDThh:mm:ss.sss.
Parameters:
clock - The computer time
Returns:
The string repreentation of time instant


Intalio Inc. (C) 1999-2001. All rights reserved.