Top Description Fields Constructors Methods
org.hibernate.dialect.pagination

public Class LimitLimitHandler

extends AbstractSimpleLimitHandler
Class Inheritance
Imports
java.util.regex.Pattern

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.
Author
Esen Sagynov (kadishmal at gmail dot com)

Field Summary

Modifier and TypeField and Description
private static final Pattern
public static final LimitLimitHandler

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Pattern
getForUpdatePattern()

Overrides org.hibernate.dialect.pagination.AbstractLimitHandler.getForUpdatePattern.

The offset/limit clauses typically must come before the FOR UPDATEish clauses, so we need a way to identify these clauses in the text of the whole query.
protected String
protected String
public boolean
supportsOffset()

Overrides org.hibernate.dialect.pagination.AbstractSimpleLimitHandler.supportsOffset.

Implements org.hibernate.dialect.pagination.LimitHandler.supportsOffset.

Does this handler support offsetting query results without also specifying a limit?
Inherited from org.hibernate.dialect.pagination.AbstractSimpleLimitHandler:
insertprocessSqlsupportsLimitsupportsVariableLimit

Field Detail

FOR_UPDATE_PATTERNback to summary
private static final Pattern FOR_UPDATE_PATTERN

Hides org.hibernate.dialect.pagination.AbstractLimitHandler.FOR_UPDATE_PATTERN.

INSTANCEback to summary
public static final LimitLimitHandler INSTANCE

Constructor Detail

LimitLimitHandlerback to summary
public LimitLimitHandler()

Method Detail

getForUpdatePatternback to summary
protected Pattern getForUpdatePattern()

Overrides org.hibernate.dialect.pagination.AbstractLimitHandler.getForUpdatePattern.

Doc from org.hibernate.dialect.pagination.AbstractLimitHandler.getForUpdatePattern.

The offset/limit clauses typically must come before the FOR UPDATEish clauses, so we need a way to identify these clauses in the text of the whole query.

Annotations
@Override
limitClauseback to summary
protected String limitClause(boolean hasFirstRow)

Implements abstract org.hibernate.dialect.pagination.AbstractSimpleLimitHandler.limitClause.

Annotations
@Override
offsetOnlyClauseback to summary
protected String offsetOnlyClause()

Overrides org.hibernate.dialect.pagination.AbstractSimpleLimitHandler.offsetOnlyClause.

Annotations
@Override
supportsOffsetback to summary
public boolean supportsOffset()

Overrides org.hibernate.dialect.pagination.AbstractSimpleLimitHandler.supportsOffset.

Implements org.hibernate.dialect.pagination.LimitHandler.supportsOffset.

Doc from org.hibernate.dialect.pagination.LimitHandler.supportsOffset.

Does this handler support offsetting query results without also specifying a limit?

Returns:boolean

True if this handler supports offset alone.

Annotations
@Override