Enum TxContextTransition

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<TxContextTransition>

    public enum TxContextTransition
    extends java.lang.Enum<TxContextTransition>
    Enumeration defines the possible transitions of a transaction context.
    Version:
    1.0
    Author:
    JEAF Development Team
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ERROR
      A invalid transaction context transition is requested and so an error has to be reported.
      NEW_TX_REQUIRED
      A new transaction context is required.
      NO_TX_REQUIRED
      A currently running transaction has to be suspended so that there will be no more active transaction context.
      UNCHANGED
      The current transaction context has to remain unchanged.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static TxContextTransition valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static TxContextTransition[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • NEW_TX_REQUIRED

        public static final TxContextTransition NEW_TX_REQUIRED
        A new transaction context is required.
      • NO_TX_REQUIRED

        public static final TxContextTransition NO_TX_REQUIRED
        A currently running transaction has to be suspended so that there will be no more active transaction context.
      • UNCHANGED

        public static final TxContextTransition UNCHANGED
        The current transaction context has to remain unchanged. If none exists a new transaction context must not be created.
      • ERROR

        public static final TxContextTransition ERROR
        A invalid transaction context transition is requested and so an error has to be reported.
    • Method Detail

      • values

        public static TxContextTransition[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TxContextTransition c : TxContextTransition.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TxContextTransition valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null