Class FetchLimitHandler
java.lang.Object
org.hibernate.dialect.pagination.spi.AbstractLimitHandler
org.hibernate.dialect.pagination.spi.AbstractNoOffsetLimitHandler
org.hibernate.dialect.pagination.spi.FetchLimitHandler
- All Implemented Interfaces:
LimitHandler
A
LimitHandler for databases which support the ANSI
SQL standard syntax FETCH FIRST m ROWS ONLY but not
OFFSET n ROWS.- Since:
- 8.0
-
Field Summary
FieldsFields inherited from class AbstractLimitHandler
NO_LIMIT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDoes the offset/limit clause come at the start of theSELECTstatement, or at the end of the query?protected Stringprotected StringlimitClause(PaginationRequest request) Methods inherited from class AbstractNoOffsetLimitHandler
processSql, supportsLimit, supportsLimitOffset, supportsVariableLimitMethods inherited from class AbstractLimitHandler
bindLimitParametersInReverseOrder, bindLimitParameterValues, convertToFirstRowValue, forceLimitUsage, getFirstRow, getForUpdatePattern, getMaxOrLimit, hasFirstRow, hasMaxRows, insertAfterDistinct, insertAfterSelect, insertAtEnd, insertBeforeForUpdate, jdbcInstructions, jdbcMaxRows, parameterPositionStart, result, rowsToSkip, supportsOffset, useMaxForLimit
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
FetchLimitHandler
-
-
Method Details
-
limitClause
- Specified by:
limitClausein classAbstractNoOffsetLimitHandler
-
insert
- Specified by:
insertin classAbstractNoOffsetLimitHandler
-
bindLimitParametersFirst
public boolean bindLimitParametersFirst()Description copied from class:AbstractLimitHandlerDoes the offset/limit clause come at the start of theSELECTstatement, or at the end of the query?- Specified by:
bindLimitParametersFirstin classAbstractNoOffsetLimitHandler- Returns:
- true if limit parameters come before other parameters
-