com.arjuna.ats.jts.utils
Class Utility

java.lang.Object
  extended by com.arjuna.ats.jts.utils.Utility

public class Utility
extends Object

Some useful utility functions for the OTS. Use with care!

Since:
JTS 1.0.
Version:
$Id: Utility.java 2342 2006-03-30 13:06:17Z $
Author:
Mark Little (mark_little@hp.com)

Constructor Summary
Utility()
           
 
Method Summary
static String getHierarchy(org.omg.CosTransactions.PropagationContext ctx)
           
static Uid getUid(org.omg.CosTransactions.Control cont)
          If this control refers to an JBoss transaction then return its native Uid representation.
static Uid otidToUid(org.omg.CosTransactions.otid_t otid)
           
static PrintWriter printStatus(PrintWriter strm, org.omg.CosTransactions.Status res)
           
static String stringStatus(org.omg.CosTransactions.Status res)
           
static String stringVote(org.omg.CosTransactions.Vote v)
           
static org.omg.CosTransactions.otid_t uidToOtid(String theUid)
           
static org.omg.CosTransactions.otid_t uidToOtid(Uid theUid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utility

public Utility()
Method Detail

getHierarchy

public static String getHierarchy(org.omg.CosTransactions.PropagationContext ctx)

stringVote

public static String stringVote(org.omg.CosTransactions.Vote v)
Since:
JTS 2.1.2.

printStatus

public static PrintWriter printStatus(PrintWriter strm,
                                      org.omg.CosTransactions.Status res)

stringStatus

public static String stringStatus(org.omg.CosTransactions.Status res)
Since:
JTS 2.1.2.

getUid

public static final Uid getUid(org.omg.CosTransactions.Control cont)
If this control refers to an JBoss transaction then return its native Uid representation. Otherwise return Uid.nullUid().


uidToOtid

public static final org.omg.CosTransactions.otid_t uidToOtid(Uid theUid)
Since:
JTS 2.2.

uidToOtid

public static final org.omg.CosTransactions.otid_t uidToOtid(String theUid)

otidToUid

public static final Uid otidToUid(org.omg.CosTransactions.otid_t otid)


Copyright © 2011. All Rights Reserved.