public enum PersistenceContextType extends EnumSE<PersistenceContextType>
PersistenceContext
でトランザクションスコープまたは拡張永続コンテキストを使用するかどうかを指定します。指定しない場合、トランザクションスコープの永続コンテキストが使用されます。列挙型定数と説明 |
---|
EXTENDED 拡張永続コンテキスト |
TRANSACTION トランザクションスコープの永続コンテキスト |
修飾子と型 | メソッドと説明 |
---|---|
static PersistenceContextType | valueOf(StringSE name) 指定された名前を持つこの型の列挙定数を返します。 |
static PersistenceContextType[] | values() この列挙型の定数を含む配列を、宣言されている順序で返します。 |
cloneSE, compareToSE, equalsSE, finalizeSE, getDeclaringClassSE, hashCodeSE, nameSE, ordinalSE, toStringSE, valueOfSE
getClassSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
public static final PersistenceContextType TRANSACTION
public static final PersistenceContextType EXTENDED
public static PersistenceContextType[] values()
for (PersistenceContextType c : PersistenceContextType.values()) System.out.println(c);
public static PersistenceContextType valueOf(StringSE name)
name
- 返される列挙定数の名前。IllegalArgumentExceptionSE
- この列挙型に指定された名前の定数がない場合 NullPointerExceptionSE
- 引数が null の場合 Copyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.