Package org.hibernate.dialect.pagination
Class NoopLimitHandler
- java.lang.Object
-
- org.hibernate.dialect.pagination.AbstractLimitHandler
-
- org.hibernate.dialect.pagination.NoopLimitHandler
-
- All Implemented Interfaces:
LimitHandler
public class NoopLimitHandler extends AbstractLimitHandler
Handler not supporting query LIMIT clause. JDBC API is used to set maximum number of returned rows.
-
-
Field Summary
Fields Modifier and Type Field Description static NoopLimitHandler
INSTANCE
-
Fields inherited from class org.hibernate.dialect.pagination.AbstractLimitHandler
NO_LIMIT
-
-
Constructor Summary
Constructors Constructor Description NoopLimitHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
bindLimitParametersAtEndOfQuery(Limit limit, PreparedStatement statement, int index)
int
bindLimitParametersAtStartOfQuery(Limit limit, PreparedStatement statement, int index)
String
processSql(String sql, Limit limit)
void
setMaxRows(Limit limit, PreparedStatement statement)
-
Methods inherited from class org.hibernate.dialect.pagination.AbstractLimitHandler
bindLimitParameters, bindLimitParametersFirst, bindLimitParametersInReverseOrder, convertToFirstRowValue, forceLimitUsage, getFirstRow, getForUpdatePattern, getMaxOrLimit, hasFirstRow, hasMaxRows, insertAfterDistinct, insertAfterSelect, insertAtEnd, insertBeforeForUpdate, supportsLimit, supportsLimitOffset, supportsOffset, 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 NoopLimitHandler INSTANCE
-
-
Method Detail
-
processSql
public String processSql(String sql, Limit limit)
- Specified by:
processSql
in interfaceLimitHandler
- Overrides:
processSql
in classAbstractLimitHandler
-
bindLimitParametersAtStartOfQuery
public int bindLimitParametersAtStartOfQuery(Limit limit, PreparedStatement statement, int index)
- Specified by:
bindLimitParametersAtStartOfQuery
in interfaceLimitHandler
- Overrides:
bindLimitParametersAtStartOfQuery
in classAbstractLimitHandler
-
bindLimitParametersAtEndOfQuery
public int bindLimitParametersAtEndOfQuery(Limit limit, PreparedStatement statement, int index)
- Specified by:
bindLimitParametersAtEndOfQuery
in interfaceLimitHandler
- Overrides:
bindLimitParametersAtEndOfQuery
in classAbstractLimitHandler
-
setMaxRows
public void setMaxRows(Limit limit, PreparedStatement statement) throws SQLException
- Specified by:
setMaxRows
in interfaceLimitHandler
- Overrides:
setMaxRows
in classAbstractLimitHandler
- Throws:
SQLException
-
-