Package org.hibernate.query.internal
Class QueryOptionsImpl
java.lang.Object
org.hibernate.query.internal.QueryOptionsImpl
- All Implemented Interfaces:
AppliedGraph,MutableQueryOptions,QueryOptions
-
Field Summary
Fields inherited from interface org.hibernate.query.spi.QueryOptions
NONE, READ_ONLY, READ_WRITE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDatabaseHint(String hint) Corollary toQueryOptions.getDatabaseHints()voidapplyGraph(RootGraphImplementor<?> rootGraph, GraphSemantic graphSemantic) voiddisableFetchProfile(String profileName) voidenableFetchProfile(String profileName) JPAEntityGraphexplicitly 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 queryThe explicitly enabled profiles for this queryThe fetch size to be applied to the JDBC query.The flush mode to use for the query execution@Nullable RootGraphImplementor<?> getGraph()The applied graphgetLimit()The limit to the query results.Describes the locking to apply to the query 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 results@Nullable GraphSemanticThe semantic (fetch/load) under which the graph should be appliedThe timeout to apply to the query.Transformer applied to the query to transform the structure of each "row" in the resultsShould entities returned from the query be marked read-only.Should results from the query be cached?voidsetCacheRetrieveMode(CacheRetrieveMode retrieveMode) Corollary toQueryOptions.getCacheRetrieveMode()voidsetCacheStoreMode(CacheStoreMode storeMode) Corollary toQueryOptions.getCacheStoreMode()voidsetComment(String comment) Corollary toQueryOptions.getComment()voidsetFetchSize(int fetchSize) Corollary toQueryOptions.getFetchSize()voidsetFetchSize(Integer fetchSize) voidsetFlushMode(FlushMode flushMode) Corollary toQueryOptions.getFlushMode()voidsetQueryPlanCachingEnabled(Boolean queryPlanCachingEnabled) Corollary toQueryOptions.getQueryPlanCachingEnabled()voidsetReadOnly(boolean readOnly) Corollary toQueryOptions.isReadOnly()voidsetResultCacheRegionName(String resultCacheRegionName) Corollary toQueryOptions.getResultCacheRegionName()voidsetResultCachingEnabled(boolean resultCachingEnabled) Corollary toQueryOptions.isResultCachingEnabled()voidsetResultListTransformer(ResultListTransformer<?> transformer) voidsetTimeout(int timeout) Corollary toQueryOptions.getTimeout()voidsetTimeout(Integer timeout) voidsetTupleTransformer(TupleTransformer<?> transformer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.query.spi.MutableQueryOptions
setCacheModeMethods inherited from interface org.hibernate.query.spi.QueryOptions
getCacheMode, getEffectiveLimit, getFirstRow, getMaxRows, getUniqueSemantic, hasLimit
-
Constructor Details
-
QueryOptionsImpl
public QueryOptionsImpl()
-
-
Method Details
-
getTimeout
Description copied from interface:QueryOptionsThe timeout to apply to the query. May also be defined at the transaction level usingTransaction.getTimeout()- Specified by:
getTimeoutin interfaceQueryOptions
-
setTimeout
-
getFlushMode
Description copied from interface:QueryOptionsThe flush mode to use for the query execution- Specified by:
getFlushModein interfaceQueryOptions
-
setFlushMode
Description copied from interface:MutableQueryOptionsCorollary toQueryOptions.getFlushMode()- Specified by:
setFlushModein interfaceMutableQueryOptions
-
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
-
setComment
Description copied from interface:MutableQueryOptionsCorollary toQueryOptions.getComment()- Specified by:
setCommentin interfaceMutableQueryOptions
-
getDatabaseHints
Description copied from interface:QueryOptionsHints to apply to the interpreted SQL query- Specified by:
getDatabaseHintsin interfaceQueryOptions
-
addDatabaseHint
Description copied from interface:MutableQueryOptionsCorollary toQueryOptions.getDatabaseHints()- Specified by:
addDatabaseHintin interfaceMutableQueryOptions
-
setTupleTransformer
- Specified by:
setTupleTransformerin interfaceMutableQueryOptions
-
setResultListTransformer
- Specified by:
setResultListTransformerin interfaceMutableQueryOptions
-
getLimit
Description copied from interface:QueryOptionsThe limit to the query results. May also be accessed viaQueryOptions.getFirstRow()andQueryOptions.getMaxRows()- Specified by:
getLimitin interfaceQueryOptions
-
getLockOptions
Description copied from interface:QueryOptionsDescribes the locking to apply to the query results- Specified by:
getLockOptionsin interfaceQueryOptions
-
getFetchSize
Description copied from interface:QueryOptionsThe fetch size to be applied to the JDBC query.- Specified by:
getFetchSizein interfaceQueryOptions- See Also:
-
setFetchSize
-
getCacheRetrieveMode
Description copied from interface:QueryOptionsControls whether query results are read from the cache. 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. No effect unlessQueryOptions.isResultCachingEnabled()returnstrue- Specified by:
getCacheStoreModein interfaceQueryOptions- See Also:
-
setCacheRetrieveMode
Description copied from interface:MutableQueryOptionsCorollary toQueryOptions.getCacheRetrieveMode()- Specified by:
setCacheRetrieveModein interfaceMutableQueryOptions
-
setCacheStoreMode
Description copied from interface:MutableQueryOptionsCorollary toQueryOptions.getCacheStoreMode()- Specified by:
setCacheStoreModein interfaceMutableQueryOptions
-
isResultCachingEnabled
Description copied from interface:QueryOptionsShould results from the query be cached?- Specified by:
isResultCachingEnabledin interfaceQueryOptions- See Also:
-
setResultCachingEnabled
public void setResultCachingEnabled(boolean resultCachingEnabled) Description copied from interface:MutableQueryOptionsCorollary toQueryOptions.isResultCachingEnabled()- Specified by:
setResultCachingEnabledin interfaceMutableQueryOptions
-
getResultCacheRegionName
Description copied from interface:QueryOptionsThe query cache region in which the results should be cached. No effect unlessQueryOptions.isResultCachingEnabled()returnstrue- Specified by:
getResultCacheRegionNamein interfaceQueryOptions
-
getQueryPlanCachingEnabled
Description copied from interface:QueryOptionsShould the query plan of the query be cached?- Specified by:
getQueryPlanCachingEnabledin interfaceQueryOptions
-
setQueryPlanCachingEnabled
Description copied from interface:MutableQueryOptionsCorollary toQueryOptions.getQueryPlanCachingEnabled()- Specified by:
setQueryPlanCachingEnabledin interfaceMutableQueryOptions
-
getTupleTransformer
Description copied from interface:QueryOptionsTransformer applied to the query to transform the structure of each "row" in the results- Specified by:
getTupleTransformerin interfaceQueryOptions
-
getResultListTransformer
Description copied from interface:QueryOptionsTransformer applied to the query to transform the structure of the overall results- Specified by:
getResultListTransformerin interfaceQueryOptions
-
setResultCacheRegionName
Description copied from interface:MutableQueryOptionsCorollary toQueryOptions.getResultCacheRegionName()- Specified by:
setResultCacheRegionNamein interfaceMutableQueryOptions
-
setTimeout
public void setTimeout(int timeout) Description copied from interface:MutableQueryOptionsCorollary toQueryOptions.getTimeout()- Specified by:
setTimeoutin interfaceMutableQueryOptions
-
setFetchSize
public void setFetchSize(int fetchSize) Description copied from interface:MutableQueryOptionsCorollary toQueryOptions.getFetchSize()- Specified by:
setFetchSizein interfaceMutableQueryOptions
-
setReadOnly
public void setReadOnly(boolean readOnly) Description copied from interface:MutableQueryOptionsCorollary toQueryOptions.isReadOnly()- Specified by:
setReadOnlyin interfaceMutableQueryOptions
-
isReadOnly
Description copied from interface:QueryOptionsShould entities returned from the query be marked read-only.- Specified by:
isReadOnlyin interfaceQueryOptions
-
applyGraph
- Specified by:
applyGraphin interfaceMutableQueryOptions
-
enableFetchProfile
- Specified by:
enableFetchProfilein interfaceMutableQueryOptions
-
disableFetchProfile
- Specified by:
disableFetchProfilein interfaceMutableQueryOptions
-
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
-
getAppliedGraph
Description copied from interface:QueryOptionsJPAEntityGraphexplicitly applied to the query.- Specified by:
getAppliedGraphin interfaceQueryOptions
-
getGraph
Description copied from interface:AppliedGraphThe applied graph- Specified by:
getGraphin interfaceAppliedGraph
-
getSemantic
Description copied from interface:AppliedGraphThe semantic (fetch/load) under which the graph should be applied- Specified by:
getSemanticin interfaceAppliedGraph
-