Class RestQuery
java.lang.Object
io.clonecloudstore.common.database.utils.RestQuery
- Direct Known Subclasses:
DbQuery
RestQuery enabling Query to be serialized as Json
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
CONJUNCTIONstatic enum
QUERY -
Constructor Summary
ConstructorsModifierConstructorDescriptionEmpty constructorprotected
RestQuery
(RestQuery.CONJUNCTION conjunction, RestQuery... queries) Constructor from ParametersRestQuery
(RestQuery.CONJUNCTION conjunction, Collection<RestQuery> queries) Constructor from ParametersRestQuery
(RestQuery.QUERY query, String field, Object value) Constructor from ParametersRestQuery
(RestQuery.QUERY query, String field, Object... values) Constructor from ParametersRestQuery
(RestQuery.QUERY query, String field, String value) Constructor from ParametersRestQuery
(RestQuery.QUERY query, String field, Collection<Object> values) Constructor from Parameters -
Method Summary
-
Constructor Details
-
RestQuery
public RestQuery()Empty constructor -
RestQuery
-
RestQuery
Constructor from Parameters -
RestQuery
Constructor from Parameters -
RestQuery
Constructor from Parameters -
RestQuery
Constructor from Parameters -
RestQuery
Constructor from Parameters -
RestQuery
Constructor from Parameters
-
-
Method Details
-
isEmpty
public boolean isEmpty()- Returns:
- True if this query has no criteria (equivalent to where "all")
-
getQUERY
- Returns:
- the QUERY
-
getConjunction
- Returns:
- the CONJUNCTION
-
getFieldName
- Returns:
- the Field Name
-
getSvalue
- Returns:
- the value for a String
-
getOvalue
- Returns:
- the value for an Object
-
getAvalues
- Returns:
- the value for an array of Object
-
getValueCollection
- Returns:
- the value for a collection of Object
-
getRestQueries
- Returns:
- in case of Conjunction, the array of sub-queries
-