Package org.iplass.mtp.transaction
Enum Propagation
- java.lang.Object
-
- java.lang.Enum<Propagation>
-
- org.iplass.mtp.transaction.Propagation
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Propagation>,java.lang.constant.Constable
public enum Propagation extends java.lang.Enum<Propagation>
トランザクションの伝搬をあらわすenum型です。
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NOT_SUPPORTEDトランザクション制御をしない。既存のトランザクションが開始されている場合は、一旦そのトランザクションがサスペンドされ当該処理完了後、レジュームされる。REQUIREDトランザクションが開始されていなかったら、開始(およびコミット/ロールバック)する。すでにトランザクションが開始されている場合は、そのトランザクションのコンテキストで実行される。REQUIRES_NEW新規にトランザクションを開始(およびコミット/ロールバック)する。既存のトランザクションがあった場合は、一旦サスペンドされ当該処理完了後、レジュームされる。SUPPORTSトランザクションが開始されていなかったら、トランザクション制御しない。既にトランザクションが開始されている場合は、そのトランザクションのコンテキストで実行される。
-
Method Summary
Modifier and Type Method Description static PropagationvalueOf(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.
-
-
-
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 namejava.lang.NullPointerException- if the argument is null
-
-