Class SQLServer2012LimitHandler
java.lang.Object
org.hibernate.dialect.pagination.spi.AbstractLimitHandler
org.hibernate.dialect.pagination.spi.OffsetFetchLimitHandler
org.hibernate.dialect.pagination.spi.SQLServer2012LimitHandler
- All Implemented Interfaces:
LimitHandler
A
LimitHandler compatible with SQL Server 2012 which
introduced support for the ANSI SQL standard syntax
OFFSET m ROWS FETCH NEXT n ROWS ONLY, though this syntax
is considered part of the ORDER BY clause, and with the
wrinkle that both ORDER BY and the OFFSET clause
are required.- Since:
- 8.0
-
Field Summary
FieldsFields inherited from class AbstractLimitHandler
NO_LIMIT -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbegin(String sql, StringBuilder offsetFetch, boolean hasFirstRow, boolean hasMaxRows) OFFSETandFETCHhave to come right at the end of theORDER BYclause, andOFFSETis required in order to have aFETCH:Methods inherited from class OffsetFetchLimitHandler
insert, processSql, renderOffsetRowsKeyword, supportsLimit, supportsOffset, supportsVariableLimitMethods inherited from class AbstractLimitHandler
bindLimitParametersFirst, bindLimitParametersInReverseOrder, bindLimitParameterValues, convertToFirstRowValue, forceLimitUsage, getFirstRow, getForUpdatePattern, getMaxOrLimit, hasFirstRow, hasMaxRows, insertAfterDistinct, insertAfterSelect, insertAtEnd, insertBeforeForUpdate, jdbcInstructions, jdbcMaxRows, parameterPositionStart, result, rowsToSkip, supportsLimitOffset, useMaxForLimit
-
Field Details
-
INSTANCE
-
-
Method Details
-
begin
protected void begin(String sql, StringBuilder offsetFetch, boolean hasFirstRow, boolean hasMaxRows) OFFSETandFETCHhave to come right at the end of theORDER BYclause, andOFFSETis required in order to have aFETCH:order by ... offset m rows [fetch next n rows only]
- Overrides:
beginin classOffsetFetchLimitHandler
-