Enum Class TransactionAttribute

java.lang.Object
java.lang.Enum<TransactionAttribute>
org.seasar.doma.jdbc.tx.TransactionAttribute
All Implemented Interfaces:
Serializable, Comparable<TransactionAttribute>, Constable

public enum TransactionAttribute extends Enum<TransactionAttribute>
Defines transaction propagation behaviors.
  • Enum Constant Details

    • REQUIRED

      public static final TransactionAttribute REQUIRED
      Support a current transaction, create a new one if none exists.
    • REQUIRES_NEW

      public static final TransactionAttribute REQUIRES_NEW
      Create a new transaction, and suspend the current transaction if one exists.
    • NOT_SUPPORTED

      public static final TransactionAttribute NOT_SUPPORTED
      Execute non-transactionally, and suspend the current transaction if one exists.
  • Method Details

    • values

      public static TransactionAttribute[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TransactionAttribute valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null