Package org.hibernate.dialect.pagination
Interface LimitHandler
- All Known Implementing Classes:
AbstractLimitHandler,AbstractNoOffsetLimitHandler,AbstractSimpleLimitHandler,DB2LimitHandler,FetchLimitHandler,LegacyDB2LimitHandler,LimitLimitHandler,LimitOffsetLimitHandler,NoopLimitHandler,OffsetFetchLimitHandler,Oracle12LimitHandler,SQLServer2012LimitHandler,TopLimitHandler
public interface LimitHandler
Contract defining dialect-specific limit and offset handling.
Most implementations extend
AbstractLimitHandler.-
Method Summary
Modifier and TypeMethodDescriptionintbindLimitParametersAtEndOfQuery(Limit limit, PreparedStatement statement, int index) intbindLimitParametersAtStartOfQuery(Limit limit, PreparedStatement statement, int index) processSql(String sql, Limit limit) default StringprocessSql(String sql, Limit limit, QueryOptions queryOptions) voidsetMaxRows(Limit limit, PreparedStatement statement) booleanDoes this handler support limiting query results?booleanDoes this handler support combinations of limit and offset?booleanDoes this handler support offsetting query results without also specifying a limit?
-
Method Details
-
supportsLimit
boolean supportsLimit()Does this handler support limiting query results?- Returns:
- True if this handler supports limit alone.
-
supportsOffset
boolean supportsOffset()Does this handler support offsetting query results without also specifying a limit?- Returns:
- True if this handler supports offset alone.
-
supportsLimitOffset
boolean supportsLimitOffset()Does this handler support combinations of limit and offset?- Returns:
- True if the handler supports an offset within the limit support.
-
processSql
-
processSql
-
bindLimitParametersAtStartOfQuery
int bindLimitParametersAtStartOfQuery(Limit limit, PreparedStatement statement, int index) throws SQLException - Throws:
SQLException
-
bindLimitParametersAtEndOfQuery
int bindLimitParametersAtEndOfQuery(Limit limit, PreparedStatement statement, int index) throws SQLException - Throws:
SQLException
-
setMaxRows
- Throws:
SQLException
-