public class FeaturePagingImpl extends AbstractFeature implements FeaturePaging<FeaturePagingImpl>
AbstractFeature
for FeatureWhere
.Modifier and Type | Field and Description |
---|---|
private Integer |
limit |
private Long |
offset |
SORT_INDEX_AND_FROM, SORT_INDEX_FETCHPLAN, SORT_INDEX_GROUP_BY, SORT_INDEX_HAVING, SORT_INDEX_LET, SORT_INDEX_LOCK, SORT_INDEX_NOCACHE, SORT_INDEX_ORDER_BY, SORT_INDEX_PAGING, SORT_INDEX_PARALLEL, SORT_INDEX_SET, SORT_INDEX_TIMEOUT, SORT_INDEX_UNWIND, SORT_INDEX_UPSERT, SORT_INDEX_WHERE
Constructor and Description |
---|
FeaturePagingImpl()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
build(SqlBuilder builder) |
Integer |
getLimit() |
Long |
getOffset() |
FeaturePagingImpl |
limit(int newLimit)
Set the limit for the query matches.
|
FeaturePagingImpl |
offset(long newOffset)
Set the offset for the query results.
|
asArg, asPath, combine, compareTo, create, getDialect, getSortIndex, getStatement, setStatement
public FeaturePagingImpl limit(int newLimit)
FeatureLimit
limit
in interface FeatureLimit<FeaturePagingImpl>
newLimit
- the limit for the maximum number of matches for the query.public FeaturePagingImpl offset(long newOffset)
FeaturePaging
FeatureLimit.limit(int)
).offset
in interface FeaturePaging<FeaturePagingImpl>
newOffset
- the number of results to skip.public void build(SqlBuilder builder)
build
in class AbstractFeature
builder
- the SqlBuilder
with the query context to build the SQL and bind variables.Copyright © 2001–2016 mmm-Team. All rights reserved.