Class Utility

java.lang.Object
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 Details

    • Utility

      public Utility()
  • Method Details

    • getHierarchy

      public static String getHierarchy(PropagationContext ctx)
    • stringVote

      public static String stringVote(Vote v)
      Since:
      JTS 2.1.2.
    • printStatus

      public static PrintWriter printStatus(PrintWriter strm, Status res)
    • exceptionCode

      public static String exceptionCode(int code)
    • stringStatus

      public static String stringStatus(Status res)
      Since:
      JTS 2.1.2.
    • getUid

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

      public static final otid_t uidToOtid(Uid theUid)
      Since:
      JTS 2.2.
    • uidToOtid

      public static final otid_t uidToOtid(String theUid)
    • otidToUid

      public static final Uid otidToUid(otid_t otid)