Package org.hibernate.query.spi
Class DelegatingQueryOptions
java.lang.Object
org.hibernate.query.spi.DelegatingQueryOptions
- All Implemented Interfaces:
QueryOptions
- Direct Known Subclasses:
SqlOmittingQueryOptions
-
Field Summary
Fields inherited from interface org.hibernate.query.spi.QueryOptions
NONE, READ_ONLY, READ_WRITE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionJPAEntityGraph
explicitly 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 commentsHints to apply to the interpreted SQL queryThe explicitly disabled profiles for this queryDetermine the effective paging limit to apply to the query.The explicitly enabled profiles for this queryThe fetch size to be applied to the JDBC query.The first row from the results to returnThe flush mode to use for the query executiongetLimit()
The limit to the query results.Describes the locking to apply to the query resultsThe maximum number of rows to return from the resultsShould 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 resultsThe timeout to apply to the query.Transformer applied to the query to transform the structure of each "row" in the resultsboolean
hasLimit()
Did the application explicitly request paging limits?Should entities returned from the query be marked read-only.Should results from the query be cached?
-
Constructor Details
-
DelegatingQueryOptions
-
-
Method Details
-
getTimeout
Description copied from interface:QueryOptions
The timeout to apply to the query. May also be defined at the transaction level usingTransaction.getTimeout()
- Specified by:
getTimeout
in interfaceQueryOptions
-
getFlushMode
Description copied from interface:QueryOptions
The flush mode to use for the query execution- Specified by:
getFlushMode
in interfaceQueryOptions
-
isReadOnly
Description copied from interface:QueryOptions
Should entities returned from the query be marked read-only.- Specified by:
isReadOnly
in interfaceQueryOptions
-
getAppliedGraph
Description copied from interface:QueryOptions
JPAEntityGraph
explicitly applied to the query.- Specified by:
getAppliedGraph
in interfaceQueryOptions
-
getTupleTransformer
Description copied from interface:QueryOptions
Transformer applied to the query to transform the structure of each "row" in the results- Specified by:
getTupleTransformer
in interfaceQueryOptions
-
getResultListTransformer
Description copied from interface:QueryOptions
Transformer applied to the query to transform the structure of the overall results- Specified by:
getResultListTransformer
in interfaceQueryOptions
-
isResultCachingEnabled
Description copied from interface:QueryOptions
Should results from the query be cached?- Specified by:
isResultCachingEnabled
in interfaceQueryOptions
- See Also:
-
getCacheRetrieveMode
Description copied from interface:QueryOptions
Controls whether query results are read from the cache. No effect unlessQueryOptions.isResultCachingEnabled()
returnstrue
- Specified by:
getCacheRetrieveMode
in interfaceQueryOptions
- See Also:
-
getCacheStoreMode
Description copied from interface:QueryOptions
Controls whether query results are put into the cache. No effect unlessQueryOptions.isResultCachingEnabled()
returnstrue
- Specified by:
getCacheStoreMode
in interfaceQueryOptions
- See Also:
-
getQueryPlanCachingEnabled
Description copied from interface:QueryOptions
Should the query plan of the query be cached?- Specified by:
getQueryPlanCachingEnabled
in interfaceQueryOptions
-
getCacheMode
- Specified by:
getCacheMode
in interfaceQueryOptions
-
getResultCacheRegionName
Description copied from interface:QueryOptions
The query cache region in which the results should be cached. No effect unlessQueryOptions.isResultCachingEnabled()
returnstrue
- Specified by:
getResultCacheRegionName
in interfaceQueryOptions
-
getLockOptions
Description copied from interface:QueryOptions
Describes the locking to apply to the query results- Specified by:
getLockOptions
in interfaceQueryOptions
-
getComment
Description copied from interface:QueryOptions
The SQL comment to apply to the interpreted SQL query, for dialects which support SQL comments- Specified by:
getComment
in interfaceQueryOptions
-
getDatabaseHints
Description copied from interface:QueryOptions
Hints to apply to the interpreted SQL query- Specified by:
getDatabaseHints
in interfaceQueryOptions
-
getFetchSize
Description copied from interface:QueryOptions
The fetch size to be applied to the JDBC query.- Specified by:
getFetchSize
in interfaceQueryOptions
- See Also:
-
getEnabledFetchProfiles
Description copied from interface:QueryOptions
The explicitly enabled profiles for this query- Specified by:
getEnabledFetchProfiles
in interfaceQueryOptions
-
getDisabledFetchProfiles
Description copied from interface:QueryOptions
The explicitly disabled profiles for this query- Specified by:
getDisabledFetchProfiles
in interfaceQueryOptions
-
getLimit
Description copied from interface:QueryOptions
The limit to the query results. May also be accessed viaQueryOptions.getFirstRow()
andQueryOptions.getMaxRows()
- Specified by:
getLimit
in interfaceQueryOptions
-
getFirstRow
Description copied from interface:QueryOptions
The first row from the results to return- Specified by:
getFirstRow
in interfaceQueryOptions
- See Also:
-
getMaxRows
Description copied from interface:QueryOptions
The maximum number of rows to return from the results- Specified by:
getMaxRows
in interfaceQueryOptions
- See Also:
-
getEffectiveLimit
Description copied from interface:QueryOptions
Determine the effective paging limit to apply to the query. If the application did not explicitly specify paging limits,Limit.NONE
is returned- Specified by:
getEffectiveLimit
in interfaceQueryOptions
- See Also:
-
hasLimit
public boolean hasLimit()Description copied from interface:QueryOptions
Did the application explicitly request paging limits?- Specified by:
hasLimit
in interfaceQueryOptions
- See Also:
-
getUniqueSemantic
- Specified by:
getUniqueSemantic
in interfaceQueryOptions
-