public interface QueryHints
CrudMethodMetadata.getQueryHints() QueryHintList()} by
default excluding JPA EntityGraph. The object allows to switch between query hints for
count queries with or without fetch graph hints.| Modifier and Type | Interface and Description |
|---|---|
static class |
QueryHints.NoHints
Null object implementation of
QueryHints. |
| 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 |
from(QueryHints... sources)
Create a new
QueryHints object from the given sources. |
QueryHints |
withFetchGraphs(javax.persistence.EntityManager em)
Creates and returns a new
QueryHints instance including EntityGraph. |
static QueryHints from(QueryHints... sources)
QueryHints object from the given sources.sources - must not be null.QueryHints.QueryHints withFetchGraphs(javax.persistence.EntityManager em)
QueryHints instance including EntityGraph.em - must not be null.QueryHints.QueryHints forCounts()
QueryHints instance that will contain only those hints applicable for count
queries.QueryHints.void forEach(BiConsumer<String,Object> action)
Passes each query hint to the consumer. Query hint keys might appear more than once.
action - to process query hints consisting of a key and a value.Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.