public static final class ILcdModel.Query extends Object
ILcdModel.query(Query)
.
You can create a query using one of the static factory methods: ILcdModel.all
or ILcdModel.filter
.filter
, sorted
or limit
.
The underlying condition
and sort-by
must never change after creation.
See examples
.Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object that) |
ILcdModel.Query |
filter(ILcdOGCCondition aCondition)
Create a copy of this query and replace the condition to filter on.
|
ILcdOGCCondition |
getCondition()
Get the OGC condition that should be applied as filter, if any.
|
Integer |
getLimit()
Get the maximum number of elements to query, if any.
|
ILcdOGCSortBy |
getSortBy()
Get the sorting order should be applied, if any.
|
int |
hashCode() |
ILcdModel.Query |
limit(Integer aLimit)
Create a copy of this query and replace the maximum number of elements to retrieve.
|
ILcdModel.Query |
sorted(ILcdOGCSortBy aSortBy)
Create a copy of this query and replace the sorting order.
|
String |
toString() |
public ILcdOGCCondition getCondition()
null
if no filter should be applied.public ILcdOGCSortBy getSortBy()
null
if no sorting should be applied.public Integer getLimit()
null
if all elements should be retrieved.public ILcdModel.Query filter(ILcdOGCCondition aCondition)
aCondition
- The condition to apply, or null
if no filtering should be done.TLcdOGCFilterFactory to easily create conditions
public ILcdModel.Query sorted(ILcdOGCSortBy aSortBy)
aSortBy
- The sorting order to apply, or null
if no sorting should be done.TLcdOGCSortBy "comparing" and "thenComparing" factory methods to easily create sorting orders
public ILcdModel.Query limit(Integer aLimit)
aLimit
- The maximum number of element to query. Use Use null
or a negative number if no limit should be applied.