Package net.worcade.client.query
Interface Query.Builder<T extends EntityField>
-
- Enclosing interface:
- Query<T extends EntityField>
public static interface Query.Builder<T extends EntityField>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Query<T>build()Query.Builder<T>fields(Collection<T> fields)Add the specified fields to the resultQuery.Builder<T>fields(T... fields)Add the specified fields to the resultQuery.Builder<T>filter(T field, String value)Add the specified filter to the query.Query.Builder<T>limit(int limit)Limit the amount of results returned.Query.Builder<T>order(T field, boolean ascending)Add an order to the query.
-
-
-
Method Detail
-
fields
Query.Builder<T> fields(T... fields)
Add the specified fields to the result
-
fields
Query.Builder<T> fields(Collection<T> fields)
Add the specified fields to the result
-
filter
Query.Builder<T> filter(T field, String value)
Add the specified filter to the query. Filters for different fields will be AND'ed Filters on the same field with different value will be OR'ed Not all fields can be filtered. For details, see the Worcade API doc
-
order
Query.Builder<T> order(T field, boolean ascending)
Add an order to the query. Multiple orders can be specified. Not all fields can be used for ordering. For details, see the Worcade API doc
-
limit
Query.Builder<T> limit(int limit)
Limit the amount of results returned. Defaults to 10. Cannot exceed 100.
-
-