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 TypeMethodDescriptionboolean
filter
(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.int
hashCode()
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
null
if no filter should be applied. - Since:
- 2017.0
-
getSortBy
Get the sorting order should be applied, if any.- Returns:
- The sorting order, or
null
if 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
null
if 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, ornull
if 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, ornull
if 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 Usenull
or a negative number if no limit should be applied.- Returns:
- A new query object.
-
equals
-
hashCode
public int hashCode() -
toString
-