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, valueOf
from
public 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)
QueryHints
QueryHints
instance including EntityGraph
.withFetchGraphs
in interface QueryHints
em
- must not be null.QueryHints
.public QueryHints forCounts()
QueryHints
QueryHints
instance that will contain only those hints applicable for count
queries.forCounts
in interface QueryHints
QueryHints
.public void forEach(BiConsumer<String,Object> action)
QueryHints
Passes each query hint to the consumer. Query hint keys might appear more than once.
forEach
in interface QueryHints
action
- to process query hints consisting of a key and a value.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.