Package org.hibernate.dialect.pagination
Class SQL2008StandardLimitHandler
- java.lang.Object
-
- org.hibernate.dialect.pagination.AbstractLimitHandler
-
- org.hibernate.dialect.pagination.SQL2008StandardLimitHandler
-
- All Implemented Interfaces:
LimitHandler
public class SQL2008StandardLimitHandler extends AbstractLimitHandler
LIMIT clause handler compatible with ISO and ANSI SQL:2008 standard.
-
-
Field Summary
Fields Modifier and Type Field Description static SQL2008StandardLimitHandlerINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringprocessSql(String sql, RowSelection selection)Return processed SQL query.booleansupportsLimit()Does this handler support some form of limiting query results via a SQL clause?-
Methods inherited from class org.hibernate.dialect.pagination.AbstractLimitHandler
bindLimitParameters, bindLimitParametersAtEndOfQuery, bindLimitParametersAtStartOfQuery, bindLimitParametersFirst, bindLimitParametersInReverseOrder, convertToFirstRowValue, forceLimitUsage, getMaxOrLimit, setMaxRows, supportsLimitOffset, supportsVariableLimit, 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 final SQL2008StandardLimitHandler INSTANCE
-
-
Method Detail
-
supportsLimit
public boolean supportsLimit()
Description copied from interface:LimitHandlerDoes this handler support some form of limiting query results via a SQL clause?- Specified by:
supportsLimitin interfaceLimitHandler- Overrides:
supportsLimitin classAbstractLimitHandler- Returns:
- True if this handler supports some form of LIMIT.
-
processSql
public String processSql(String sql, RowSelection selection)
Description copied from interface:LimitHandlerReturn processed SQL query.- Specified by:
processSqlin interfaceLimitHandler- Overrides:
processSqlin classAbstractLimitHandler- Parameters:
sql- the SQL query to process.selection- the selection criteria for rows.- Returns:
- Query statement with LIMIT clause applied.
-
-