public static enum QueryHints.NoHints extends Enum<QueryHints.NoHints> implements QueryHints
QueryHints.QueryHints.NoHints| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
QueryHints |
forCounts()
Creates and returns a new
QueryHints instance that will contain only those hints applicable for count
queries. |
void |
forEach(BiConsumer<String,Object> action)
Performs the given action for each element of this query hints object until all hints have been processed or the
action throws an exception.
|
static QueryHints.NoHints |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static QueryHints.NoHints[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
QueryHints |
withFetchGraphs(javax.persistence.EntityManager em)
Creates and returns a new
QueryHints instance including EntityGraph. |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOffrompublic static final QueryHints.NoHints INSTANCE
public static QueryHints.NoHints[] values()
for (QueryHints.NoHints c : QueryHints.NoHints.values()) System.out.println(c);
public static QueryHints.NoHints 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 QueryHints withFetchGraphs(javax.persistence.EntityManager em)
QueryHintsQueryHints instance including EntityGraph.withFetchGraphs in interface QueryHintsem - must not be null.QueryHints.public QueryHints forCounts()
QueryHintsQueryHints instance that will contain only those hints applicable for count
queries.forCounts in interface QueryHintsQueryHints.public void forEach(BiConsumer<String,Object> action)
QueryHintsPasses each query hint to the consumer. Query hint keys might appear more than once.
forEach in interface QueryHintsaction - to process query hints consisting of a key and a value.Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.