public static class Page.Builder extends Object
Page.with() to get started.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Page.Builder |
allMatch(Map<String,Object> requiredCriteria)
Set the required criteria.
|
Page.Builder |
anyMatch(Map<String,Object> optionalCriteria)
Set the optional criteria.
|
Page |
build()
Build the page.
|
Page.Builder |
orderBy(String field,
boolean ascending)
Set the ordering.
|
Page.Builder |
range(int offset,
int limit)
Set the range.
|
public Page.Builder range(int offset, int limit)
offset - Zero-based offset of the page. May not be negative. Defaults to 0.limit - Maximum amount of records to be matched. May not be less than 1. Defaults to Integer.MAX_VALUE.IllegalStateException - When another offset and limit is already set in this builder.public Page.Builder orderBy(String field, boolean ascending)
{"id",false}.field - The field.ascending - Whether to sort ascending.public Page.Builder allMatch(Map<String,Object> requiredCriteria)
requiredCriteria - Required criteria.IllegalStateException - When another required criteria is already set in this builder.Criteriapublic Page.Builder anyMatch(Map<String,Object> optionalCriteria)
optionalCriteria - Optional criteria.IllegalStateException - When another optional criteria is already set in this builder.Criteriapublic Page build()
Copyright © 2015–2017 OmniFaces. All rights reserved.