Class LimitLimitHandler
java.lang.Object
org.hibernate.dialect.pagination.spi.AbstractLimitHandler
org.hibernate.dialect.pagination.spi.AbstractSimpleLimitHandler
org.hibernate.dialect.pagination.spi.LimitLimitHandler
- All Implemented Interfaces:
LimitHandler
Limit handler for MySQL and CUBRID which support the syntax
LIMIT n and LIMIT m, n. Note that this
syntax does not allow specification of an offset without
a limit.- Since:
- 8.0
-
Field Summary
FieldsFields inherited from class AbstractLimitHandler
NO_LIMIT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PatternThe offset/limit clauses typically must come before theFOR UPDATEish clauses, so we need a way to identify these clauses in the text of the whole query.protected StringlimitClause(boolean hasFirstRow, PaginationRequest request) protected StringoffsetOnlyClause(PaginationRequest request) booleanDoes this handler support offsetting query results without also specifying a limit?Methods inherited from class AbstractSimpleLimitHandler
insert, processSql, supportsLimit, supportsVariableLimitMethods inherited from class AbstractLimitHandler
bindLimitParametersFirst, bindLimitParametersInReverseOrder, bindLimitParameterValues, convertToFirstRowValue, forceLimitUsage, getFirstRow, getMaxOrLimit, hasFirstRow, hasMaxRows, insertAfterDistinct, insertAfterSelect, insertAtEnd, insertBeforeForUpdate, jdbcInstructions, jdbcMaxRows, parameterPositionStart, result, rowsToSkip, supportsLimitOffset, useMaxForLimit
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
LimitLimitHandler
-
-
Method Details
-
limitClause
- Specified by:
limitClausein classAbstractSimpleLimitHandler
-
offsetOnlyClause
- Overrides:
offsetOnlyClausein classAbstractSimpleLimitHandler
-
getForUpdatePattern
Description copied from class:AbstractLimitHandlerThe offset/limit clauses typically must come before theFOR UPDATEish clauses, so we need a way to identify these clauses in the text of the whole query.- Overrides:
getForUpdatePatternin classAbstractLimitHandler
-
supportsOffset
public boolean supportsOffset()Description copied from interface:LimitHandlerDoes this handler support offsetting query results without also specifying a limit?- Specified by:
supportsOffsetin interfaceLimitHandler- Overrides:
supportsOffsetin classAbstractSimpleLimitHandler- Returns:
- True if this handler supports offset alone.
-