AbstractLimitHandler class.
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: The number of parameter values bound.the selection criteria for rows. selection, PreparedStatement Statement to which to bind limit parameter values. statement, int Index from which to start binding. index)Bind parameter values needed by the LIMIT clause after original SELECT statement. |
| public int | Returns: The number of parameter values bound.the selection criteria for rows. selection, PreparedStatement Statement to which to bind limit parameter values. statement, int Index from which to start binding. index)Bind parameter values needed by the LIMIT clause before original SELECT statement. |
| public String | Returns: Query statement with LIMIT clause applied.the SQL query to process. sql, RowSelection the selection criteria for rows. selection)Return processed SQL query. |
| public default String | Returns: Query statement with LIMIT clause applied.the SQL query to process. sql, QueryParameters the queryParameters. queryParameters)Return processed SQL query. |
| public void | setMaxRows(RowSelection
the selection criteria for rows. selection, PreparedStatement Statement which number of returned rows shall be limited. statement)Use JDBC API to limit the number of rows returned by the SQL query. |
| public boolean | Returns: True if this handler supports some form of LIMIT.Does this handler support some form of limiting query results via a SQL clause? |
| public boolean | Returns: True if the handler supports an offset within the limit support.Does this handler's LIMIT support (if any) additionally support specifying an offset? |
| bindLimitParametersAtEndOfQuery | back to summary |
|---|---|
| public int bindLimitParametersAtEndOfQuery(RowSelection selection, PreparedStatement statement, int index) throws SQLException Bind parameter values needed by the LIMIT clause after original SELECT statement.
| |
| bindLimitParametersAtStartOfQuery | back to summary |
|---|---|
| public int bindLimitParametersAtStartOfQuery(RowSelection selection, PreparedStatement statement, int index) throws SQLException Bind parameter values needed by the LIMIT clause before original SELECT statement.
| |
| processSql | back to summary |
|---|---|
| public String processSql(String sql, RowSelection selection) Return processed SQL query.
| |
| processSql | back to summary |
|---|---|
| public default String processSql(String sql, QueryParameters queryParameters) Return processed SQL query.
| |
| setMaxRows | back to summary |
|---|---|
| public void setMaxRows(RowSelection selection, PreparedStatement statement) throws SQLException Use 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.
| |
| supportsLimit | back to summary |
|---|---|
| public boolean supportsLimit() Does this handler support some form of limiting query results via a SQL clause?
| |
| supportsLimitOffset | back to summary |
|---|---|
| public boolean supportsLimitOffset() Does this handler's LIMIT support (if any) additionally support specifying an offset?
| |