Class QueryOptionsAdapter
java.lang.Object
org.hibernate.query.spi.QueryOptionsAdapter
- 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.The explicitly enabled profiles for this query.The fetch size to be applied to the JDBC query.getLimit()The limit to the query results.Describes the locking to apply to the query 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.Are entities returned by the query marked as read-only?Should results from the query be cached?Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface QueryOptions
getEffectiveLimit, getFirstRow, getMaxRows, getUniqueSemantic, hasLimit, isLimitInMemoryEnabled, isScrollExecution, peekOriginalLimit
-
Constructor Details
-
QueryOptionsAdapter
public QueryOptionsAdapter()
-
-
Method Details
-
getLimit
Description copied from interface:QueryOptionsThe limit to the query results. May also be accessed viaQueryOptions.getFirstRow()andQueryOptions.getMaxRows().- Specified by:
getLimitin interfaceQueryOptions
-
getFetchSize
Description copied from interface:QueryOptionsThe fetch size to be applied to the JDBC query.- Specified by:
getFetchSizein interfaceQueryOptions- See Also:
-
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
-
getLockOptions
Description copied from interface:QueryOptionsDescribes the locking to apply to the query results.- Specified by:
getLockOptionsin interfaceQueryOptions
-
getDatabaseHints
Description copied from interface:QueryOptionsHints to apply to the interpreted SQL query.- Specified by:
getDatabaseHintsin interfaceQueryOptions
-
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
-
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:
-
getCacheMode
- Specified by:
getCacheModein interfaceQueryOptions
-
isResultCachingEnabled
Description copied from interface:QueryOptionsShould results from the query be cached?- Specified by:
isResultCachingEnabledin interfaceQueryOptions- See Also:
-
getQueryPlanCachingEnabled
Description copied from interface:QueryOptionsShould the query plan of the query be cached?- Specified by:
getQueryPlanCachingEnabledin 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
-
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
-
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
-