public class PagingCriteria extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
PagingCriteria.DynamicOrdering |
Constructor and Description |
---|
PagingCriteria()
Default constructor with paging OFF.
|
PagingCriteria(int count)
Constructor with paging ON and given result count.
|
PagingCriteria(int index,
int count)
Constructor with paging ON and given index and result count.
|
Modifier and Type | Method and Description |
---|---|
int |
getCount()
Returns the count of items in the result list.
|
Ordering<String> |
getDynamicOrdering() |
List<Filter> |
getFilters()
Returns list of filters applied to result list.
|
int |
getIndex()
Returns the index of the first item in the result list (starting from 0).
|
boolean |
isPaged()
Returns
true if the query should return only a part of the result list. |
void |
setCount(int count)
Sets the count of items in the result list.
|
void |
setDynamicOrdering(String column,
boolean ascending) |
void |
setFilters(List<Filter> filters)
Sets filters that are applied to result list.
|
void |
setIndex(int index)
Sets the index of the first item in the result list (starting from 0).
|
public PagingCriteria()
public PagingCriteria(int count)
count
- public PagingCriteria(int index, int count)
index
- count
- public final boolean isPaged()
true
if the query should return only a part of the result list.
This is in fact a shorthand for getCount() > 0
.public final int getIndex()
public final void setIndex(int index)
index
- public final int getCount()
public final void setCount(int count)
count
- public List<Filter> getFilters()
public void setFilters(List<Filter> filters)
filters
- public void setDynamicOrdering(String column, boolean ascending)
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.