org.guiceex.jpa.transaction
列挙型 TransactionAttributeType
java.lang.Object
java.lang.Enum<TransactionAttributeType>
org.guiceex.jpa.transaction.TransactionAttributeType
- すべての実装されたインタフェース:
- Serializable, Comparable<TransactionAttributeType>
public enum TransactionAttributeType
- extends Enum<TransactionAttributeType>
@
Transactional
のTransactional.value()
へ指定する
トランザクション属性の列挙型です。
- 作成者:
- matu◆AliceLAklI.
NOT_SUPPORTED
public static final TransactionAttributeType NOT_SUPPORTED
- トランザクションをサポートしない場合に指定します。
SUPPORTS
public static final TransactionAttributeType SUPPORTS
REQUIRED
public static final TransactionAttributeType REQUIRED
REQUIRES_NEW
public static final TransactionAttributeType REQUIRES_NEW
MANDATORY
public static final TransactionAttributeType MANDATORY
NEVER
public static final TransactionAttributeType NEVER
values
public static final TransactionAttributeType[] values()
- この列挙型の定数を含む配列を宣言されている順序で返します。
このメソッドは次のようにして定数を反復するために使用できます:
for(TransactionAttributeType c : TransactionAttributeType.values())
System.out.println(c);
- 戻り値:
- この列挙型の定数を宣言されている順序で含む配列
valueOf
public static TransactionAttributeType valueOf(String name)
- 指定した名前を持つこの型の列挙型定数を返します。
文字列は、この型の列挙型定数を宣言するのに使用した識別子と厳密に
一致している必要があります (余分な空白文字を含めることはできません)。
- パラメータ:
name
- 返される列挙型定数の名前
- 戻り値:
- 指定された名前を持つ列挙型定数
- 例外:
IllegalArgumentException
- 指定された名前を持つ定数を
この列挙型が持っていない場合
Copyright © 2007. All Rights Reserved.