Package org.hibernate.query.spi
Class SqlOmittingQueryOptions
java.lang.Object
org.hibernate.query.spi.DelegatingQueryOptions
org.hibernate.query.spi.SqlOmittingQueryOptions
- All Implemented Interfaces:
QueryOptions
- API Note:
- This class is considered internal implementation and will move to an internal package in a future version. Application programs should never depend directly on this class.
-
Field Summary
Fields inherited from interface org.hibernate.query.spi.QueryOptions
NONE, READ_ONLY, READ_WRITE -
Constructor Summary
ConstructorsConstructorDescriptionSqlOmittingQueryOptions(QueryOptions queryOptions, boolean omitLimit, boolean omitLocks) SqlOmittingQueryOptions(QueryOptions queryOptions, boolean omitLimit, boolean omitLocks, ListResultsConsumer.UniqueSemantic semantic) -
Method Summary
Modifier and TypeMethodDescriptionDetermine the effective paging limit to apply to the query.The fetch size to be applied to the JDBC query.The first row from the results to returngetLimit()The limit to the query results.Describes the locking to apply to the query resultsThe maximum number of rows to return from the resultsbooleanhasLimit()Did the application explicitly request paging limits?static QueryOptionsomitSqlQueryOptions(QueryOptions originalOptions) static QueryOptionsomitSqlQueryOptions(QueryOptions originalOptions, boolean omitLimit, boolean omitLocks) static QueryOptionsomitSqlQueryOptions(QueryOptions originalOptions, JdbcOperationQuerySelect select) static QueryOptionsomitSqlQueryOptionsWithUniqueSemanticFilter(QueryOptions originalOptions, boolean omitLimit, boolean omitLocks) Methods inherited from class org.hibernate.query.spi.DelegatingQueryOptions
getAppliedGraph, getCacheMode, getCacheRetrieveMode, getCacheStoreMode, getComment, getDatabaseHints, getDisabledFetchProfiles, getEnabledFetchProfiles, getFlushMode, getQueryPlanCachingEnabled, getResultCacheRegionName, getResultListTransformer, getTimeout, getTupleTransformer, isReadOnly, isResultCachingEnabled
-
Constructor Details
-
SqlOmittingQueryOptions
-
SqlOmittingQueryOptions
public SqlOmittingQueryOptions(QueryOptions queryOptions, boolean omitLimit, boolean omitLocks, ListResultsConsumer.UniqueSemantic semantic)
-
-
Method Details
-
omitSqlQueryOptions
-
omitSqlQueryOptions
public static QueryOptions omitSqlQueryOptions(QueryOptions originalOptions, JdbcOperationQuerySelect select) -
omitSqlQueryOptions
public static QueryOptions omitSqlQueryOptions(QueryOptions originalOptions, boolean omitLimit, boolean omitLocks) -
omitSqlQueryOptionsWithUniqueSemanticFilter
public static QueryOptions omitSqlQueryOptionsWithUniqueSemanticFilter(QueryOptions originalOptions, boolean omitLimit, boolean omitLocks) -
getLockOptions
Description copied from interface:QueryOptionsDescribes the locking to apply to the query results- Specified by:
getLockOptionsin interfaceQueryOptions- Overrides:
getLockOptionsin classDelegatingQueryOptions
-
getFetchSize
Description copied from interface:QueryOptionsThe fetch size to be applied to the JDBC query.- Specified by:
getFetchSizein interfaceQueryOptions- Overrides:
getFetchSizein classDelegatingQueryOptions- See Also:
-
getLimit
Description copied from interface:QueryOptionsThe limit to the query results. May also be accessed viaQueryOptions.getFirstRow()andQueryOptions.getMaxRows()- Specified by:
getLimitin interfaceQueryOptions- Overrides:
getLimitin classDelegatingQueryOptions
-
getFirstRow
Description copied from interface:QueryOptionsThe first row from the results to return- Specified by:
getFirstRowin interfaceQueryOptions- Overrides:
getFirstRowin classDelegatingQueryOptions- See Also:
-
getMaxRows
Description copied from interface:QueryOptionsThe maximum number of rows to return from the results- Specified by:
getMaxRowsin interfaceQueryOptions- Overrides:
getMaxRowsin classDelegatingQueryOptions- 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- Overrides:
getEffectiveLimitin classDelegatingQueryOptions- See Also:
-
hasLimit
public boolean hasLimit()Description copied from interface:QueryOptionsDid the application explicitly request paging limits?- Specified by:
hasLimitin interfaceQueryOptions- Overrides:
hasLimitin classDelegatingQueryOptions- See Also:
-
getUniqueSemantic
- Specified by:
getUniqueSemanticin interfaceQueryOptions- Overrides:
getUniqueSemanticin classDelegatingQueryOptions
-