Package org.hibernate.dialect.pagination
Class LegacyHSQLLimitHandler
- java.lang.Object
-
- org.hibernate.dialect.pagination.AbstractLimitHandler
-
- org.hibernate.dialect.pagination.AbstractSimpleLimitHandler
-
- org.hibernate.dialect.pagination.LegacyHSQLLimitHandler
-
- All Implemented Interfaces:
LimitHandler
public class LegacyHSQLLimitHandler extends AbstractSimpleLimitHandler
ALimitHandler
for HSQL prior to 2.0.
-
-
Field Summary
Fields Modifier and Type Field Description static LegacyHSQLLimitHandler
INSTANCE
-
Fields inherited from class org.hibernate.dialect.pagination.AbstractLimitHandler
NO_LIMIT
-
-
Constructor Summary
Constructors Constructor Description LegacyHSQLLimitHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
bindLimitParametersFirst()
Does the offset/limit clause come at the start of theSELECT
statement, or at the end of the query?protected String
insert(String limitOrTop, String sql)
protected String
limitClause(boolean hasFirstRow)
-
Methods inherited from class org.hibernate.dialect.pagination.AbstractSimpleLimitHandler
processSql, supportsLimit, supportsVariableLimit
-
Methods inherited from class org.hibernate.dialect.pagination.AbstractLimitHandler
bindLimitParameters, bindLimitParametersAtEndOfQuery, bindLimitParametersAtStartOfQuery, bindLimitParametersInReverseOrder, convertToFirstRowValue, forceLimitUsage, getFirstRow, getForUpdatePattern, getMaxOrLimit, hasFirstRow, hasMaxRows, insertAfterDistinct, insertAfterSelect, insertAtEnd, insertBeforeForUpdate, setMaxRows, supportsLimitOffset, supportsOffset, 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
-
-
-
-
Field Detail
-
INSTANCE
public static LegacyHSQLLimitHandler INSTANCE
-
-
Method Detail
-
limitClause
protected String limitClause(boolean hasFirstRow)
- Specified by:
limitClause
in classAbstractSimpleLimitHandler
-
insert
protected String insert(String limitOrTop, String sql)
- Overrides:
insert
in classAbstractSimpleLimitHandler
-
bindLimitParametersFirst
public final boolean bindLimitParametersFirst()
Description copied from class:AbstractLimitHandler
Does the offset/limit clause come at the start of theSELECT
statement, or at the end of the query?- Overrides:
bindLimitParametersFirst
in classAbstractLimitHandler
- Returns:
- true if limit parameters come before other parameters
-
-