Package org.hibernate.query.spi
Class SqlOmittingQueryOptions
- java.lang.Object
-
- org.hibernate.query.spi.DelegatingQueryOptions
-
- org.hibernate.query.spi.SqlOmittingQueryOptions
-
- All Implemented Interfaces:
QueryOptions
public class SqlOmittingQueryOptions extends DelegatingQueryOptions
-
-
Field Summary
-
Fields inherited from interface org.hibernate.query.spi.QueryOptions
NONE, READ_ONLY, READ_WRITE
-
-
Constructor Summary
Constructors Constructor Description SqlOmittingQueryOptions(QueryOptions queryOptions, boolean omitLimit, boolean omitLocks)SqlOmittingQueryOptions(QueryOptions queryOptions, boolean omitLimit, boolean omitLocks, ListResultsConsumer.UniqueSemantic semantic)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LimitgetEffectiveLimit()Determine the effective paging limit to apply to the query.IntegergetFetchSize()The fetch size to be applied to the JDBC query.IntegergetFirstRow()The first row from the results to returnLimitgetLimit()The limit to the query results.LockOptionsgetLockOptions()Describes the locking to apply to the query resultsIntegergetMaxRows()The maximum number of rows to return from the resultsListResultsConsumer.UniqueSemanticgetUniqueSemantic()booleanhasLimit()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, getFlushMode, getResultCacheRegionName, getResultListTransformer, getTimeout, getTupleTransformer, isReadOnly, isResultCachingEnabled
-
-
-
-
Constructor Detail
-
SqlOmittingQueryOptions
public SqlOmittingQueryOptions(QueryOptions queryOptions, boolean omitLimit, boolean omitLocks)
-
SqlOmittingQueryOptions
public SqlOmittingQueryOptions(QueryOptions queryOptions, boolean omitLimit, boolean omitLocks, ListResultsConsumer.UniqueSemantic semantic)
-
-
Method Detail
-
omitSqlQueryOptions
public static QueryOptions omitSqlQueryOptions(QueryOptions originalOptions)
-
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
public LockOptions getLockOptions()
Description copied from interface:QueryOptionsDescribes the locking to apply to the query results- Specified by:
getLockOptionsin interfaceQueryOptions- Overrides:
getLockOptionsin classDelegatingQueryOptions
-
getFetchSize
public Integer getFetchSize()
Description copied from interface:QueryOptionsThe fetch size to be applied to the JDBC query.- Specified by:
getFetchSizein interfaceQueryOptions- Overrides:
getFetchSizein classDelegatingQueryOptions- See Also:
Statement.getFetchSize()
-
getLimit
public Limit 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
public Integer getFirstRow()
Description copied from interface:QueryOptionsThe first row from the results to return- Specified by:
getFirstRowin interfaceQueryOptions- Overrides:
getFirstRowin classDelegatingQueryOptions- See Also:
QueryOptions.getLimit()
-
getMaxRows
public Integer getMaxRows()
Description copied from interface:QueryOptionsThe maximum number of rows to return from the results- Specified by:
getMaxRowsin interfaceQueryOptions- Overrides:
getMaxRowsin classDelegatingQueryOptions- See Also:
QueryOptions.getLimit()
-
getEffectiveLimit
public Limit 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:
QueryOptions.getLimit()
-
hasLimit
public boolean hasLimit()
Description copied from interface:QueryOptionsDid the application explicitly request paging limits?- Specified by:
hasLimitin interfaceQueryOptions- Overrides:
hasLimitin classDelegatingQueryOptions- See Also:
QueryOptions.getLimit()
-
getUniqueSemantic
public ListResultsConsumer.UniqueSemantic getUniqueSemantic()
- Specified by:
getUniqueSemanticin interfaceQueryOptions- Overrides:
getUniqueSemanticin classDelegatingQueryOptions
-
-