Enum Propagation

java.lang.Object
java.lang.Enum<Propagation>
com.codename1.backend.annotations.Propagation
All Implemented Interfaces:
Comparable<Propagation>

public enum Propagation extends Enum<Propagation>
What a Transactional method does about a transaction that is already open on the calling thread. Spring's meanings, one for one.
  • Enum Constant Details

    • REQUIRED

      public static final Propagation REQUIRED
      Joins the open transaction, or opens one. The default.
    • SUPPORTS

      public static final Propagation SUPPORTS
      Joins the open transaction, or runs without one.
    • MANDATORY

      public static final Propagation MANDATORY
      Joins the open transaction, and refuses to run without one.
    • REQUIRES_NEW

      public static final Propagation REQUIRES_NEW
      Suspends the open transaction, if any, and opens its own on another connection. It commits or rolls back independently of the outer one.
    • NOT_SUPPORTED

      public static final Propagation NOT_SUPPORTED
      Suspends the open transaction, if any, and runs without one.
    • NEVER

      public static final Propagation NEVER
      Refuses to run inside a transaction.
    • NESTED

      public static final Propagation NESTED
      Runs in a savepoint of the open transaction, which a failure rolls back to without failing the outer transaction; opens one when none is open.
  • Method Details

    • values

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

      public static Propagation valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null