Package org.hibernate.dialect.pagination
Class NoopLimitHandler
java.lang.Object
org.hibernate.dialect.pagination.AbstractLimitHandler
org.hibernate.dialect.pagination.NoopLimitHandler
- All Implemented Interfaces:
LimitHandler
Handler not supporting query LIMIT clause. JDBC API is used to set maximum number of returned rows.
-
Field Summary
FieldsFields inherited from class org.hibernate.dialect.pagination.AbstractLimitHandler
NO_LIMIT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbindLimitParametersAtEndOfQuery(Limit limit, PreparedStatement statement, int index) intbindLimitParametersAtStartOfQuery(Limit limit, PreparedStatement statement, int index) processSql(String sql, Limit limit) booleanReturns whetherLimitHandler.processSql(String, int, ParameterMarkerStrategy, QueryOptions)mutates the state of this limit handler and needs to be called for certain other methods to work correctly.voidsetMaxRows(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, useMaxForLimitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.dialect.pagination.LimitHandler
getParameterPositionStart, processSql, processSql
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
NoopLimitHandler
public NoopLimitHandler()
-
-
Method Details
-
processSql
- Specified by:
processSqlin interfaceLimitHandler- Overrides:
processSqlin classAbstractLimitHandler
-
bindLimitParametersAtStartOfQuery
- Specified by:
bindLimitParametersAtStartOfQueryin interfaceLimitHandler- Overrides:
bindLimitParametersAtStartOfQueryin classAbstractLimitHandler
-
bindLimitParametersAtEndOfQuery
- Specified by:
bindLimitParametersAtEndOfQueryin interfaceLimitHandler- Overrides:
bindLimitParametersAtEndOfQueryin classAbstractLimitHandler
-
setMaxRows
- Specified by:
setMaxRowsin interfaceLimitHandler- Overrides:
setMaxRowsin classAbstractLimitHandler- Throws:
SQLException
-
processSqlMutatesState
public boolean processSqlMutatesState()Description copied from interface:LimitHandlerReturns whetherLimitHandler.processSql(String, int, ParameterMarkerStrategy, QueryOptions)mutates the state of this limit handler and needs to be called for certain other methods to work correctly.
-