public enum AutoDetachType extends Enum<AutoDetachType>
OpenJPAEntityManager
.Enum Constant and Description |
---|
CLOSE |
COMMIT |
NON_TRANSACTIONAL_READ |
NONE |
ROLLBACK |
Modifier and Type | Method and Description |
---|---|
static int |
fromEnumSet(EnumSet<AutoDetachType> types) |
static EnumSet<AutoDetachType> |
toEnumSet(int autoDetach) |
static AutoDetachType |
valueOf(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 NONE
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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static EnumSet<AutoDetachType> toEnumSet(int autoDetach)
public static int fromEnumSet(EnumSet<AutoDetachType> types)
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.