LimitHandler compatible with SQL Server 2012 which
introduced support for the ANSI SQL standard syntax
OFFSET m ROWS FETCH NEXT n ROWS ONLY, though this syntax
is considered part of the ORDER BY clause, and with the
wrinkle that both ORDER BY and the OFFSET clause
are required.
| Modifier and Type | Field and Description |
|---|---|
| public static final SQLServer2012LimitHandler |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | begin(String sql, StringBuilder offsetFetch, boolean hasFirstRow, boolean hasMaxRows)
Overrides org. OFFSET and FETCH have to come right at the end
of the ORDER BY clause, and OFFSET is required
in order to have a FETCH:
order by ... |
| INSTANCE | back to summary |
|---|---|
| public static final SQLServer2012LimitHandler INSTANCE Hides org. | |
| SQLServer2012LimitHandler | back to summary |
|---|---|
| public SQLServer2012LimitHandler() | |
| begin | back to summary |
|---|---|
| pack-priv void begin(String sql, StringBuilder offsetFetch, boolean hasFirstRow, boolean hasMaxRows) Overrides org.
order by ... offset m rows [fetch next n rows only]
| |