Package org.hibernate.dialect.pagination
Class AbstractSimpleLimitHandler
- java.lang.Object
-
- org.hibernate.dialect.pagination.AbstractLimitHandler
-
- org.hibernate.dialect.pagination.AbstractSimpleLimitHandler
-
- All Implemented Interfaces:
LimitHandler
- Direct Known Subclasses:
LegacyHSQLLimitHandler
,LimitLimitHandler
,LimitOffsetLimitHandler
public abstract class AbstractSimpleLimitHandler extends AbstractLimitHandler
Superclass for simpleLimitHandler
s that don't support specifying an offset without a limit.
-
-
Field Summary
-
Fields inherited from class org.hibernate.dialect.pagination.AbstractLimitHandler
NO_LIMIT
-
-
Constructor Summary
Constructors Constructor Description AbstractSimpleLimitHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected String
insert(String limitClause, String sql)
protected abstract String
limitClause(boolean hasFirstRow)
protected String
offsetOnlyClause()
String
processSql(String sql, Limit limit)
boolean
supportsLimit()
Does this handler support limiting query results?boolean
supportsOffset()
Does this handler support offsetting query results without also specifying a limit?boolean
supportsVariableLimit()
Does this handler support bind variables (JDBC prepared statement parameters) for its limit/offset?-
Methods inherited from class org.hibernate.dialect.pagination.AbstractLimitHandler
bindLimitParameters, bindLimitParametersAtEndOfQuery, bindLimitParametersAtStartOfQuery, bindLimitParametersFirst, bindLimitParametersInReverseOrder, convertToFirstRowValue, forceLimitUsage, getFirstRow, getForUpdatePattern, getMaxOrLimit, hasFirstRow, hasMaxRows, insertAfterDistinct, insertAfterSelect, insertAtEnd, insertBeforeForUpdate, setMaxRows, supportsLimitOffset, useMaxForLimit
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.dialect.pagination.LimitHandler
processSql
-
-
-
-
Method Detail
-
limitClause
protected abstract String limitClause(boolean hasFirstRow)
-
offsetOnlyClause
protected String offsetOnlyClause()
-
processSql
public String processSql(String sql, Limit limit)
- Specified by:
processSql
in interfaceLimitHandler
- Overrides:
processSql
in classAbstractLimitHandler
-
supportsLimit
public final boolean supportsLimit()
Description copied from interface:LimitHandler
Does this handler support limiting query results?- Specified by:
supportsLimit
in interfaceLimitHandler
- Overrides:
supportsLimit
in classAbstractLimitHandler
- Returns:
- True if this handler supports limit alone.
-
supportsVariableLimit
public final boolean supportsVariableLimit()
Description copied from class:AbstractLimitHandler
Does this handler support bind variables (JDBC prepared statement parameters) for its limit/offset?- Overrides:
supportsVariableLimit
in classAbstractLimitHandler
- Returns:
- true if bind variables can be used
-
supportsOffset
public boolean supportsOffset()
Description copied from interface:LimitHandler
Does this handler support offsetting query results without also specifying a limit?- Specified by:
supportsOffset
in interfaceLimitHandler
- Overrides:
supportsOffset
in classAbstractLimitHandler
- Returns:
- True if this handler supports offset alone.
-
-