类 NoopLimitHandler
- java.lang.Object
-
- org.hibernate.dialect.pagination.AbstractLimitHandler
-
- org.hibernate.dialect.pagination.NoopLimitHandler
-
- 所有已实现的接口:
LimitHandler
public class NoopLimitHandler extends AbstractLimitHandler
Handler not supporting query LIMIT clause. JDBC API is used to set maximum number of returned rows.- 作者:
- Lukasz Antoniak (lukasz dot antoniak at gmail dot com)
-
-
字段概要
字段 修饰符和类型 字段 说明 static NoopLimitHandlerINSTANCE
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intbindLimitParametersAtEndOfQuery(RowSelection selection, PreparedStatement statement, int index)Bind parameter values needed by the LIMIT clause after original SELECT statement.intbindLimitParametersAtStartOfQuery(RowSelection selection, PreparedStatement statement, int index)Bind parameter values needed by the LIMIT clause before original SELECT statement.StringprocessSql(String sql, RowSelection selection)Return processed SQL query.voidsetMaxRows(RowSelection selection, PreparedStatement statement)Use JDBC API to limit the number of rows returned by the SQL query.-
从类继承的方法 org.hibernate.dialect.pagination.AbstractLimitHandler
bindLimitParameters, bindLimitParametersFirst, bindLimitParametersInReverseOrder, convertToFirstRowValue, forceLimitUsage, getMaxOrLimit, supportsLimit, supportsLimitOffset, supportsVariableLimit, useMaxForLimit
-
-
-
-
字段详细资料
-
INSTANCE
public static final NoopLimitHandler INSTANCE
-
-
方法详细资料
-
processSql
public String processSql(String sql, RowSelection selection)
从接口复制的说明:LimitHandlerReturn processed SQL query.- 指定者:
processSql在接口中LimitHandler- 覆盖:
processSql在类中AbstractLimitHandler- 参数:
sql- the SQL query to process.selection- the selection criteria for rows.- 返回:
- Query statement with LIMIT clause applied.
-
bindLimitParametersAtStartOfQuery
public int bindLimitParametersAtStartOfQuery(RowSelection selection, PreparedStatement statement, int index)
从接口复制的说明:LimitHandlerBind parameter values needed by the LIMIT clause before original SELECT statement.- 指定者:
bindLimitParametersAtStartOfQuery在接口中LimitHandler- 覆盖:
bindLimitParametersAtStartOfQuery在类中AbstractLimitHandler- 参数:
selection- the selection criteria for rows.statement- Statement to which to bind limit parameter values.index- Index from which to start binding.- 返回:
- The number of parameter values bound.
-
bindLimitParametersAtEndOfQuery
public int bindLimitParametersAtEndOfQuery(RowSelection selection, PreparedStatement statement, int index)
从接口复制的说明:LimitHandlerBind parameter values needed by the LIMIT clause after original SELECT statement.- 指定者:
bindLimitParametersAtEndOfQuery在接口中LimitHandler- 覆盖:
bindLimitParametersAtEndOfQuery在类中AbstractLimitHandler- 参数:
selection- the selection criteria for rows.statement- Statement to which to bind limit parameter values.index- Index from which to start binding.- 返回:
- The number of parameter values bound.
-
setMaxRows
public void setMaxRows(RowSelection selection, PreparedStatement statement) throws SQLException
从接口复制的说明:LimitHandlerUse JDBC API to limit the number of rows returned by the SQL query. Typically handlers that do not support LIMIT clause should implement this method.- 指定者:
setMaxRows在接口中LimitHandler- 覆盖:
setMaxRows在类中AbstractLimitHandler- 参数:
selection- the selection criteria for rows.statement- Statement which number of returned rows shall be limited.- 抛出:
SQLException- Indicates problems while limiting maximum rows returned.
-
-