LimitHandler for DB2. Uses FETCH FIRST n ROWS ONLY,
together with ROWNUMBER() when there is an offset. (DB2 does
not support the ANSI syntax OFFSET n ROWS.)
| Modifier and Type | Field and Description |
|---|---|
| public static final LegacyDB2LimitHandler |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| public String | processSql(String sql, Limit limit)
Overrides org. Implements org. |
| public final boolean | supportsLimit()
Overrides org. Implements org. |
| public final boolean | supportsVariableLimit()
Overrides org. |
| public final boolean | useMaxForLimit()
Overrides org. |
| INSTANCE | back to summary |
|---|---|
| public static final LegacyDB2LimitHandler INSTANCE | |
| LegacyDB2LimitHandler | back to summary |
|---|---|
| public LegacyDB2LimitHandler() | |
| fetchFirstRows | back to summary |
|---|---|
| private String fetchFirstRows(Limit limit) | |
| processSql | back to summary |
|---|---|
| public String processSql(String sql, Limit limit) Overrides org. Implements org.
| |
| 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
| |