public enum ObjectLookupMethod extends Enum<ObjectLookupMethod>
Enum Constant and Description |
---|
PERSISTENCE_CONTEXT
Check whether an object is already in the persistence context before initializing it
|
SECOND_LEVEL_CACHE
Check whether an object is already either in the persistence context or in the second level cache before loading it.
|
SKIP
Skip checking (default)
|
Modifier and Type | Method and Description |
---|---|
static ObjectLookupMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ObjectLookupMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ObjectLookupMethod SKIP
public static final ObjectLookupMethod PERSISTENCE_CONTEXT
public static final ObjectLookupMethod SECOND_LEVEL_CACHE
public static ObjectLookupMethod[] values()
for (ObjectLookupMethod c : ObjectLookupMethod.values()) System.out.println(c);
public static ObjectLookupMethod 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 nullCopyright © 2006-2017 Red Hat, Inc. All Rights Reserved