public enum AutoDetachType extends java.lang.Enum<AutoDetachType>
OpenJPAEntityManager
.Enum Constant and Description |
---|
CLOSE |
COMMIT |
NON_TRANSACTIONAL_READ |
ROLLBACK |
Modifier and Type | Method and Description |
---|---|
static int |
fromEnumSet(java.util.EnumSet<AutoDetachType> types) |
static java.util.EnumSet<AutoDetachType> |
toEnumSet(int autoDetach) |
static AutoDetachType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AutoDetachType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AutoDetachType CLOSE
public static final AutoDetachType COMMIT
public static final AutoDetachType NON_TRANSACTIONAL_READ
public static final AutoDetachType ROLLBACK
public static AutoDetachType[] values()
for (AutoDetachType c : AutoDetachType.values()) System.out.println(c);
public static AutoDetachType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static java.util.EnumSet<AutoDetachType> toEnumSet(int autoDetach)
public static int fromEnumSet(java.util.EnumSet<AutoDetachType> types)