org.hibernate.search.query
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
- 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-2015 Red Hat, Inc. All Rights Reserved