Package com.luciad.model
Class ILcdModel.Query
java.lang.Object
com.luciad.model.ILcdModel.Query
- Enclosing interface:
ILcdModel
A query to be used with
Then, you can specify additional aspects using the instance methods
ILcdModel.query(Query).
You can create a query using one of the static factory methods: ILcdModel.all or ILcdModel.filter.Then, you can specify additional aspects using the instance methods
filter, sorted or limit.
The underlying condition and sort-by must never change after creation.
See examples.- Since:
- 2017.0
-
Method Summary
Modifier and TypeMethodDescriptionbooleanfilter(ILcdOGCCondition aCondition) Create a copy of this query and replace the condition to filter on.Get the OGC condition that should be applied as filter, if any.getLimit()Get the maximum number of elements to query, if any.Get the sorting order should be applied, if any.inthashCode()Create a copy of this query and replace the maximum number of elements to retrieve.sorted(ILcdOGCSortBy aSortBy) Create a copy of this query and replace the sorting order.toString()
-
Method Details
-
getCondition
Get the OGC condition that should be applied as filter, if any.- Returns:
- The condition to be used, or
nullif no filter should be applied. - Since:
- 2017.0
-
getSortBy
Get the sorting order should be applied, if any.- Returns:
- The sorting order, or
nullif no sorting should be applied. - Since:
- 2017.0
-
getLimit
Get the maximum number of elements to query, if any. If specified (not null), the value is always >= 0.- Returns:
- The maximum number of elements (zero or more), or
nullif all elements should be retrieved. - Since:
- 2017.0
-
filter
Create a copy of this query and replace the condition to filter on.- Parameters:
aCondition- The condition to apply, ornullif no filtering should be done.- Returns:
- A new query object.
- See Also:
-
sorted
Create a copy of this query and replace the sorting order.- Parameters:
aSortBy- The sorting order to apply, ornullif no sorting should be done.- Returns:
- A new query object.
- See Also:
-
limit
Create a copy of this query and replace the maximum number of elements to retrieve.- Parameters:
aLimit- The maximum number of element to query. Use Usenullor a negative number if no limit should be applied.- Returns:
- A new query object.
-
equals
-
hashCode
public int hashCode() -
toString
-