public class NoopLimitHandler extends AbstractLimitHandler
selection, sql
Constructor and Description |
---|
NoopLimitHandler(String sql,
RowSelection selection)
Constructs a NoopLimitHandler
|
Modifier and Type | Method and Description |
---|---|
int |
bindLimitParametersAtEndOfQuery(PreparedStatement statement,
int index)
Bind parameter values needed by the LIMIT clause after original SELECT statement.
|
int |
bindLimitParametersAtStartOfQuery(PreparedStatement statement,
int index)
Bind parameter values needed by the LIMIT clause before original SELECT statement.
|
String |
getProcessedSql()
Return processed SQL query.
|
void |
setMaxRows(PreparedStatement statement)
Use JDBC API to limit the number of rows returned by the SQL query.
|
bindLimitParameters, bindLimitParametersFirst, bindLimitParametersInReverseOrder, convertToFirstRowValue, forceLimitUsage, getMaxOrLimit, supportsLimit, supportsLimitOffset, supportsVariableLimit, useMaxForLimit
public NoopLimitHandler(String sql, RowSelection selection)
sql
- The SQLselection
- The row selection optionspublic String getProcessedSql()
LimitHandler
getProcessedSql
in interface LimitHandler
getProcessedSql
in class AbstractLimitHandler
public int bindLimitParametersAtStartOfQuery(PreparedStatement statement, int index)
LimitHandler
bindLimitParametersAtStartOfQuery
in interface LimitHandler
bindLimitParametersAtStartOfQuery
in class AbstractLimitHandler
statement
- Statement to which to bind limit parameter values.index
- Index from which to start binding.public int bindLimitParametersAtEndOfQuery(PreparedStatement statement, int index)
LimitHandler
bindLimitParametersAtEndOfQuery
in interface LimitHandler
bindLimitParametersAtEndOfQuery
in class AbstractLimitHandler
statement
- Statement to which to bind limit parameter values.index
- Index from which to start binding.public void setMaxRows(PreparedStatement statement) throws SQLException
LimitHandler
setMaxRows
in interface LimitHandler
setMaxRows
in class AbstractLimitHandler
statement
- Statement which number of returned rows shall be limited.SQLException
- Indicates problems while limiting maximum rows returned.Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.