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 TypeMethodDescriptionint
bindLimitParametersAtEndOfQuery
(Limit limit, PreparedStatement statement, int index) int
bindLimitParametersAtStartOfQuery
(Limit limit, PreparedStatement statement, int index) processSql
(String sql, Limit limit) boolean
Returns 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.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
getParameterPositionStart, processSql, processSql
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
NoopLimitHandler
public NoopLimitHandler()
-
-
Method Details
-
processSql
- Specified by:
processSql
in interfaceLimitHandler
- Overrides:
processSql
in classAbstractLimitHandler
-
bindLimitParametersAtStartOfQuery
- Specified by:
bindLimitParametersAtStartOfQuery
in interfaceLimitHandler
- Overrides:
bindLimitParametersAtStartOfQuery
in classAbstractLimitHandler
-
bindLimitParametersAtEndOfQuery
- Specified by:
bindLimitParametersAtEndOfQuery
in interfaceLimitHandler
- Overrides:
bindLimitParametersAtEndOfQuery
in classAbstractLimitHandler
-
setMaxRows
- Specified by:
setMaxRows
in interfaceLimitHandler
- Overrides:
setMaxRows
in classAbstractLimitHandler
- Throws:
SQLException
-
processSqlMutatesState
public boolean processSqlMutatesState()Description copied from interface:LimitHandler
Returns 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.
-