| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum |
| Modifier and Type | Field and Description |
|---|---|
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | bindLimitParametersAtEndOfQuery(Limit limit, PreparedStatement statement, int index)
Overrides org. Implements org. |
| public int | |
| public int | convertToFirstRowValue(int
The user-supplied, zero-based first row offset. zeroBasedFirstResult)Overrides org. Query#setFirstResult(int) accepts a zero-based offset.
|
| private int | |
| private int | Returns: the ending offset of the current elementA SQL fragment containing a comma-separated list sql, int the starting offset of the current element startOffset, int the end of the list endOffset)Return the position just before the start of the next element of a comma-separated list, that is, the position of the next comma, or the position of the end of the list. |
| public String | Returns: A new SQL statementOverrides org. Implements org. top(?) clause to the given SQL query.
|
| private String | Returns: a comma-separated list of aliases, or *the whole query sql, int the starting offset of the select list afterSelectOffset, int the ending offset of the select list fromOffset, StringBuilder a string builder for inserting missing aliases result)Add any missing aliases to the given |
| public final boolean | supportsLimit()
Overrides org. Implements org. |
| public final boolean | supportsVariableLimit()
Overrides org. |
| public final boolean | useMaxForLimit()
Overrides org. |
| topAdded | back to summary |
|---|---|
| private boolean topAdded | |
| SQLServer2005LimitHandler | back to summary |
|---|---|
| public SQLServer2005LimitHandler() | |
| bindLimitParametersAtEndOfQuery | back to summary |
|---|---|
| public int bindLimitParametersAtEndOfQuery(Limit limit, PreparedStatement statement, int index) throws SQLException Overrides org. Implements org.
| |
| bindLimitParametersAtStartOfQuery | back to summary |
|---|---|
| public int bindLimitParametersAtStartOfQuery(Limit limit, PreparedStatement statement, int index) throws SQLException Overrides org. Implements org.
| |
| convertToFirstRowValue | back to summary |
|---|---|
| public int convertToFirstRowValue(int zeroBasedFirstResult) Overrides org. Doc from org. The API method
| |
| getAliasIndex | back to summary |
|---|---|
| private int getAliasIndex(String sql) | |
| nextElement | back to summary |
|---|---|
| private int nextElement(String sql, int startOffset, int endOffset) Return the position just before the start of the next element of a comma-separated list, that is, the position of the next comma, or the position of the end of the list.
| |
| processSql | back to summary |
|---|---|
| public String processSql(String sql, Limit limit) Overrides org. Implements org. When the offset of the current row is 0,
add a
with query_ as (
select row_.*, row_number()
over (order by current_timestamp) AS rownumber_
from ( [original-query] ) row_
)
select [alias-list] from query_
where rownumber_ >= ? and rownumber_ < ?
Where | |
| selectAliases | back to summary |
|---|---|
| private String selectAliases(String sql, int afterSelectOffset, int fromOffset, StringBuilder result) Add any missing aliases to the given
| |
| supportsLimit | back to summary |
|---|---|
| public final boolean supportsLimit() Overrides org. Implements org. Doc from org. Does this handler support limiting query results?
| |
| supportsVariableLimit | back to summary |
|---|---|
| public final boolean supportsVariableLimit() Overrides org. Doc from org. Does this handler support bind variables (JDBC prepared statement parameters) for its limit/offset?
| |
| useMaxForLimit | back to summary |
|---|---|
| public final boolean useMaxForLimit() Overrides org. Doc from org. Does the limit clause expect the number of the last row, or the
"page size", the maximum number of rows we want to receive?
Hibernate's
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final SQLServer2005LimitHandler. | |
| public static final SQLServer2005LimitHandler. | |
| public static final SQLServer2005LimitHandler. | |
| pack-priv Pattern | |
| public static final SQLServer2005LimitHandler. | |
| public static final SQLServer2005LimitHandler. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | |
| pack-priv boolean | |
| pack-priv int | Returns: the offset at which the keyword occurs, or 0 if it never occurs outside of quotes or parentheses.a fragment of SQL sql)Look for a "root" occurrence of this keyword in the given SQL fragment, that is, an offset where the keyword occurs unquoted and not parenthesized. |
| public static SQLServer2005LimitHandler. | |
| public static SQLServer2005LimitHandler. |
| AS | back to summary |
|---|---|
| public static final SQLServer2005LimitHandler. | |
| FROM | back to summary |
|---|---|
| public static final SQLServer2005LimitHandler. | |
| ORDER_BY | back to summary |
|---|---|
| public static final SQLServer2005LimitHandler. | |
| pattern | back to summary |
|---|---|
| pack-priv Pattern pattern | |
| SELECT | back to summary |
|---|---|
| public static final SQLServer2005LimitHandler. | |
| WITH | back to summary |
|---|---|
| public static final SQLServer2005LimitHandler. | |
| Keyword | back to summary |
|---|---|
| private Keyword(String keyword) | |
| endOffset | back to summary |
|---|---|
| pack-priv int endOffset(String sql, int startOffset) | |
| occursAt | back to summary |
|---|---|
| pack-priv boolean occursAt(String sql, int offset) | |
| rootOffset | back to summary |
|---|---|
| pack-priv int rootOffset(String sql) Look for a "root" occurrence of this keyword in the given SQL fragment, that is, an offset where the keyword occurs unquoted and not parenthesized.
| |
| valueOf | back to summary |
|---|---|
| public static SQLServer2005LimitHandler. | |
| values | back to summary |
|---|---|
| public static SQLServer2005LimitHandler. | |