public class GQLListLoadConfig extends Object
| Constructor and Description |
|---|
GQLListLoadConfig() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFilter(String field,
GQLFilterOperatorEnum operator,
Object value)
Add a filter
|
void |
addFilter(String field,
GQLFilterOperatorEnum operator,
Object value,
IGQLDynamicAttributeGetter<?,?> dynamicAttributeGetter)
Add a filter
|
void |
addOrderBy(String field,
GQLOrderByDirectionEnum direction)
Add order by
|
void |
addOrderBys(Map<String,GQLOrderByDirectionEnum> orderBys)
Add order by from given map
|
protected void |
addOrReplace(GQLOrderByEntry order) |
List<GQLFilterEntry> |
getFilters() |
int |
getLimit() |
int |
getOffset() |
List<GQLOrderByEntry> |
getOrderBy() |
boolean |
isFiltered()
Get whether this configuration contains at least a filter configuration
|
boolean |
isOrdered()
Get whether this configuration contains at least an orderBy configuration
|
boolean |
isPaged()
Get whether this configuration contains paging configuration
|
void |
setLimit(int limit) |
void |
setOffset(int offset) |
void |
setPaging(int limit,
int offset)
Set paging limit and offset
|
public void setPaging(int limit,
int offset)
limit - the paging limitoffset - the paging offsetpublic void addOrderBys(Map<String,GQLOrderByDirectionEnum> orderBys)
orderBys - a map of sort informationspublic void addOrderBy(String field, GQLOrderByDirectionEnum direction)
field - the field to sort ondirection - the directionpublic void addFilter(String field, GQLFilterOperatorEnum operator, Object value)
field - the field nameoperator - the GQLFilterOperatorEnumvalue - the valuepublic void addFilter(String field, GQLFilterOperatorEnum operator, Object value, IGQLDynamicAttributeGetter<?,?> dynamicAttributeGetter)
field - the field nameoperator - the GQLFilterOperatorEnumvalue - the valuedynamicAttributeGetter - the IGQLDynamicAttributeGetterpublic boolean isPaged()
public boolean isOrdered()
public boolean isFiltered()
protected void addOrReplace(GQLOrderByEntry order)
public List<GQLOrderByEntry> getOrderBy()
public List<GQLFilterEntry> getFilters()
public void setLimit(int limit)
limit - the limit to setpublic int getLimit()
public int getOffset()
public void setOffset(int offset)
offset - the offset to setCopyright © 2019. All rights reserved.