Class Query
java.lang.Object
de.fraunhofer.iosb.ilt.frostclient.query.Query
- All Implemented Interfaces:
QueryParameter,QueryRequest
A query for reading operations.
-
Constructor Summary
ConstructorsConstructorDescriptionQuery(SensorThingsService service, Entity parent, NavigationPropertyEntitySet navigationLink) Query(SensorThingsService service, EntityType entityType) -
Method Summary
Modifier and TypeMethodDescriptioncount()Add the count parameter as specified by the SensorThingsAPI specification.voiddelete()Add the filter parameter as specified by the SensorThingsAPI specification.first()Get the first instance of an entity collection.list()Get an entity collection.Add the orderBy parameter as specified by the SensorThingsAPI specification.skip(int n) Add the skip parameter as specified by the SensorThingsAPI specification.top(int n) Add the top parameter as specified by the SensorThingsAPI specification.
-
Constructor Details
-
Query
-
-
Method Details
-
getEntityType
-
getService
-
filter
Description copied from interface:QueryParameterAdd the filter parameter as specified by the SensorThingsAPI specification.- Specified by:
filterin interfaceQueryParameter- Parameters:
options- the filter options as a string- Returns:
- the updated instance of the query
-
top
Description copied from interface:QueryParameterAdd the top parameter as specified by the SensorThingsAPI specification.- Specified by:
topin interfaceQueryParameter- Parameters:
n- the limit- Returns:
- the updated instance of the query
-
orderBy
Description copied from interface:QueryParameterAdd the orderBy parameter as specified by the SensorThingsAPI specification.- Specified by:
orderByin interfaceQueryParameter- Parameters:
clause- the order clause- Returns:
- the updated instance of the query
-
skip
Description copied from interface:QueryParameterAdd the skip parameter as specified by the SensorThingsAPI specification.- Specified by:
skipin interfaceQueryParameter- Parameters:
n- the number of entities to skip- Returns:
- the updated instance of the query
-
count
Description copied from interface:QueryParameterAdd the count parameter as specified by the SensorThingsAPI specification.- Specified by:
countin interfaceQueryParameter- Returns:
- the updated instance of the query
-
expand
-
select
-
first
Description copied from interface:QueryRequestGet the first instance of an entity collection.- Specified by:
firstin interfaceQueryRequest- Returns:
- the first instance
- Throws:
ServiceFailureException- the request failed
-
list
Description copied from interface:QueryRequestGet an entity collection.- Specified by:
listin interfaceQueryRequest- Returns:
- the entity collection
- Throws:
ServiceFailureException- the request failed
-
delete
- Throws:
ServiceFailureException
-