public interface LimitClause
LIMIT
.Modifier and Type | Interface and Description |
---|---|
static class |
LimitClause.Position
Enumeration of where to render the clause within the SQL statement.
|
Modifier and Type | Method and Description |
---|---|
LimitClause.Position |
getClausePosition()
Returns the
LimitClause.Position where to apply the clause . |
String |
getLimit(long limit)
Returns the
LIMIT clause to limit results. |
String |
getLimitOffset(long limit,
long offset)
Returns a combined
LIMIT/OFFSET clause that limits results and starts consumption at the given
offset . |
String |
getOffset(long offset)
Returns the
OFFSET clause to consume rows at a given offset. |
String getLimit(long limit)
LIMIT
clause to limit results.limit
- the maximum number of lines returned when the resulting SQL snippet is used.getLimitOffset(long, long)
String getOffset(long offset)
OFFSET
clause to consume rows at a given offset.offset
- the numbers of rows that get skipped when the resulting SQL snippet is used.getLimitOffset(long, long)
String getLimitOffset(long limit, long offset)
LIMIT/OFFSET
clause that limits results and starts consumption at the given
offset
.limit
- the maximum number of lines returned when the resulting SQL snippet is used.offset
- the numbers of rows that get skipped when the resulting SQL snippet is used.getLimit(long)
,
getOffset(long)
LimitClause.Position getClausePosition()
LimitClause.Position
where to apply the clause
.Copyright © 2017–2020 Pivotal Software, Inc.. All rights reserved.