org.hibernate.search.query
public enum DatabaseRetrievalMethod extends Enum<DatabaseRetrievalMethod>
| Enum Constant and Description |
|---|
FIND_BY_ID
Load each object by its identifier one by one.
|
QUERY
Use a criteria query to load the objects.
|
| Modifier and Type | Method and Description |
|---|---|
static DatabaseRetrievalMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DatabaseRetrievalMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DatabaseRetrievalMethod QUERY
public static final DatabaseRetrievalMethod FIND_BY_ID
public static DatabaseRetrievalMethod[] values()
for (DatabaseRetrievalMethod c : DatabaseRetrievalMethod.values()) System.out.println(c);
public static DatabaseRetrievalMethod 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