Enum Propagation

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Propagation>, java.lang.constant.Constable

    public enum Propagation
    extends java.lang.Enum<Propagation>
    トランザクションの伝搬をあらわすenum型です。
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Enum

        java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      NOT_SUPPORTED
      トランザクション制御をしない。既存のトランザクションが開始されている場合は、一旦そのトランザクションがサスペンドされ当該処理完了後、レジュームされる。
      REQUIRED
      トランザクションが開始されていなかったら、開始(およびコミット/ロールバック)する。すでにトランザクションが開始されている場合は、そのトランザクションのコンテキストで実行される。
      REQUIRES_NEW
      新規にトランザクションを開始(およびコミット/ロールバック)する。既存のトランザクションがあった場合は、一旦サスペンドされ当該処理完了後、レジュームされる。
      SUPPORTS
      トランザクションが開始されていなかったら、トランザクション制御しない。既にトランザクションが開始されている場合は、そのトランザクションのコンテキストで実行される。
    • Method Summary

      Modifier and Type Method Description
      static Propagation valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Propagation[] 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, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

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

      • REQUIRED

        public static final Propagation REQUIRED
        トランザクションが開始されていなかったら、開始(およびコミット/ロールバック)する。すでにトランザクションが開始されている場合は、そのトランザクションのコンテキストで実行される。
      • REQUIRES_NEW

        public static final Propagation REQUIRES_NEW
        新規にトランザクションを開始(およびコミット/ロールバック)する。既存のトランザクションがあった場合は、一旦サスペンドされ当該処理完了後、レジュームされる。
      • NOT_SUPPORTED

        public static final Propagation NOT_SUPPORTED
        トランザクション制御をしない。既存のトランザクションが開始されている場合は、一旦そのトランザクションがサスペンドされ当該処理完了後、レジュームされる。
      • SUPPORTS

        public static final Propagation SUPPORTS
        トランザクションが開始されていなかったら、トランザクション制御しない。既にトランザクションが開始されている場合は、そのトランザクションのコンテキストで実行される。
    • Method Detail

      • 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​(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