public interface SearchLoadingOptionsStep
SearchQueryOptionsStep.loading(Consumer),
allowing the definition of loading options (fetch size, cache lookups, ...).| Modifier and Type | Method and Description |
|---|---|
SearchLoadingOptionsStep |
cacheLookupStrategy(EntityLoadingCacheLookupStrategy strategy)
Set the strategy for cache lookup before query results are loaded.
|
SearchLoadingOptionsStep |
fetchSize(int fetchSize)
Set the fetch size for this query,
i.e.
|
SearchLoadingOptionsStep |
graph(javax.persistence.EntityGraph<?> graph,
GraphSemantic semantic)
Customize fetching/loading of entity attributes and associations
according to the given entity graph, with the given semantic.
|
SearchLoadingOptionsStep |
graph(String graphName,
GraphSemantic semantic)
Customize fetching/loading of entity attributes and associations
according to the entity graph with the given name, with the given semantic.
|
SearchLoadingOptionsStep fetchSize(int fetchSize)
Higher numbers mean fewer queries, but larger result sets.
fetchSize - The fetch size. Must be positive or zero.this for method chaining.Query.setFetchSize(int)SearchLoadingOptionsStep cacheLookupStrategy(EntityLoadingCacheLookupStrategy strategy)
strategy - The strategy.this for method chaining.SearchLoadingOptionsStep graph(javax.persistence.EntityGraph<?> graph, GraphSemantic semantic)
graph - The graph to apply.semantic - The semantic to use when applying the graph.this for method chaining.Session.createEntityGraph(Class),
Session.createEntityGraph(String),
Session.getEntityGraph(String)SearchLoadingOptionsStep graph(String graphName, GraphSemantic semantic)
graphName - The name of the graph to apply.semantic - The semantic to use when applying the graph.this for method chaining.NamedEntityGraphCopyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.