Class TransactionUtil


  • public class TransactionUtil
    extends java.lang.Object
    An transaction util of TransactionUtil.
    • Constructor Summary

      Constructors 
      Constructor Description
      TransactionUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean canTransitionTo​(TxnStatus currentStatus, TxnStatus newStatus)
      Check if the a status can be transaction to a new status.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TransactionUtil

        public TransactionUtil()
    • Method Detail

      • canTransitionTo

        public static boolean canTransitionTo​(TxnStatus currentStatus,
                                              TxnStatus newStatus)
        Check if the a status can be transaction to a new status.
        Parameters:
        newStatus - the new status
        Returns:
        true if the current status can be transitioning to.