Class DelegatingQueryOptions
java.lang.Object
org.hibernate.query.spi.DelegatingQueryOptions
- All Implemented Interfaces:
QueryOptions
-
Field Summary
Fields inherited from interface QueryOptions
NONE, READ_ONLY, READ_WRITE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAnEntityGraphexplicitly applied to the query.Controls whether query results are read from the cache.Controls whether query results are put into the cache.The SQL comment to apply to the interpreted SQL query, for dialects which support SQL comments.Hints to apply to the interpreted SQL query.The explicitly disabled profiles for this query.Determine the effective paging limit to apply to the query.The explicitly enabled profiles for this query.The fetch size to be applied to the JDBC query.The first row from the results to return.getLimit()The limit to the query results.Describes the locking to apply to the query results.The maximum number of rows to return from the results.The flush mode to use for the query execution.Should the query plan of the query be cached?The query cache region in which the results should be cached.Transformer applied to the query to transform the structure of the overall result list.The query execution timeout.Transformer applied to the query to transform the structure of each "row" of the results.booleanhasLimit()Did the application explicitly request paging limits?Whether top-level HQL/criteria pagination should be handled in memory instead of by the SQL query.Are entities returned by the query marked as read-only?Should results from the query be cached?booleanWhether this execution goes throughscroll()/getResultStream()and therefore needs SQL row ordering stable enough for scroll-style result grouping.The originalLimitas set by the application, before any wrapper (SqlOmittingQueryOptionsor the scroll execution context) hid it fromQueryOptions.getLimit().
-
Constructor Details
-
DelegatingQueryOptions
-
-
Method Details
-
getTimeout
Description copied from interface:QueryOptionsThe query execution timeout. May alternatively be specified at the transaction level usingTransaction.getTimeout().- Specified by:
getTimeoutin interfaceQueryOptions
-
getQueryFlushMode
Description copied from interface:QueryOptionsThe flush mode to use for the query execution.- Specified by:
getQueryFlushModein interfaceQueryOptions
-
isReadOnly
Description copied from interface:QueryOptionsAre entities returned by the query marked as read-only?- Specified by:
isReadOnlyin interfaceQueryOptions
-
getAppliedGraph
Description copied from interface:QueryOptionsAnEntityGraphexplicitly applied to the query.- Specified by:
getAppliedGraphin interfaceQueryOptions
-
getTupleTransformer
Description copied from interface:QueryOptionsTransformer applied to the query to transform the structure of each "row" of the results.- Specified by:
getTupleTransformerin interfaceQueryOptions
-
getResultListTransformer
Description copied from interface:QueryOptionsTransformer applied to the query to transform the structure of the overall result list.- Specified by:
getResultListTransformerin interfaceQueryOptions
-
isResultCachingEnabled
Description copied from interface:QueryOptionsShould results from the query be cached?- Specified by:
isResultCachingEnabledin interfaceQueryOptions- See Also:
-
getCacheRetrieveMode
Description copied from interface:QueryOptionsControls whether query results are read from the cache. Has no effect unlessQueryOptions.isResultCachingEnabled()returnstrue- Specified by:
getCacheRetrieveModein interfaceQueryOptions- See Also:
-
getCacheStoreMode
Description copied from interface:QueryOptionsControls whether query results are put into the cache. Has no effect unlessQueryOptions.isResultCachingEnabled()returnstrue.- Specified by:
getCacheStoreModein interfaceQueryOptions- See Also:
-
getQueryPlanCachingEnabled
Description copied from interface:QueryOptionsShould the query plan of the query be cached?- Specified by:
getQueryPlanCachingEnabledin interfaceQueryOptions
-
isLimitInMemoryEnabled
Description copied from interface:QueryOptionsWhether top-level HQL/criteria pagination should be handled in memory instead of by the SQL query.- Specified by:
isLimitInMemoryEnabledin interfaceQueryOptions
-
getCacheMode
- Specified by:
getCacheModein interfaceQueryOptions
-
getResultCacheRegionName
Description copied from interface:QueryOptionsThe query cache region in which the results should be cached. Has no effect unlessQueryOptions.isResultCachingEnabled()returnstrue.- Specified by:
getResultCacheRegionNamein interfaceQueryOptions
-
getLockOptions
Description copied from interface:QueryOptionsDescribes the locking to apply to the query results.- Specified by:
getLockOptionsin interfaceQueryOptions
-
getComment
Description copied from interface:QueryOptionsThe SQL comment to apply to the interpreted SQL query, for dialects which support SQL comments.- Specified by:
getCommentin interfaceQueryOptions
-
getDatabaseHints
Description copied from interface:QueryOptionsHints to apply to the interpreted SQL query.- Specified by:
getDatabaseHintsin interfaceQueryOptions
-
getFetchSize
Description copied from interface:QueryOptionsThe fetch size to be applied to the JDBC query.- Specified by:
getFetchSizein interfaceQueryOptions- See Also:
-
getEnabledFetchProfiles
Description copied from interface:QueryOptionsThe explicitly enabled profiles for this query.- Specified by:
getEnabledFetchProfilesin interfaceQueryOptions
-
getDisabledFetchProfiles
Description copied from interface:QueryOptionsThe explicitly disabled profiles for this query.- Specified by:
getDisabledFetchProfilesin interfaceQueryOptions
-
getLimit
Description copied from interface:QueryOptionsThe limit to the query results. May also be accessed viaQueryOptions.getFirstRow()andQueryOptions.getMaxRows().- Specified by:
getLimitin interfaceQueryOptions
-
peekOriginalLimit
Description copied from interface:QueryOptionsThe originalLimitas set by the application, before any wrapper (SqlOmittingQueryOptionsor the scroll execution context) hid it fromQueryOptions.getLimit(). Used by runtime parameter binders that the SQM-to-SQL converter pushed into the SQL AST so they can bind the original value even whenQueryOptions.getLimit()has been intentionally suppressed for SQL rendering.- Specified by:
peekOriginalLimitin interfaceQueryOptions
-
getFirstRow
Description copied from interface:QueryOptionsThe first row from the results to return.- Specified by:
getFirstRowin interfaceQueryOptions- See Also:
-
getMaxRows
Description copied from interface:QueryOptionsThe maximum number of rows to return from the results.- Specified by:
getMaxRowsin interfaceQueryOptions- See Also:
-
getEffectiveLimit
Description copied from interface:QueryOptionsDetermine the effective paging limit to apply to the query. If the application did not explicitly specify paging limits,Limit.NONEis returned.- Specified by:
getEffectiveLimitin interfaceQueryOptions- See Also:
-
hasLimit
public boolean hasLimit()Description copied from interface:QueryOptionsDid the application explicitly request paging limits?- Specified by:
hasLimitin interfaceQueryOptions- See Also:
-
getUniqueSemantic
- Specified by:
getUniqueSemanticin interfaceQueryOptions
-
isScrollExecution
public boolean isScrollExecution()Description copied from interface:QueryOptionsWhether this execution goes throughscroll()/getResultStream()and therefore needs SQL row ordering stable enough for scroll-style result grouping.- Specified by:
isScrollExecutionin interfaceQueryOptions
-