public enum PersistenceContextType extends Enum<PersistenceContextType>
PersistenceContext.
If the type element is not
specified, a transaction-scoped persistence context is used.| 枚举常量和说明 |
|---|
EXTENDED
Extended persistence context
|
TRANSACTION
Transaction-scoped persistence context
|
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(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2016. All rights reserved.