Class WQConstraint
java.lang.Object
com.peterphi.std.guice.restclient.jaxb.webquery.WQConstraintLine
com.peterphi.std.guice.restclient.jaxb.webquery.WQConstraint
Defines an individual field constraint to apply
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWQConstraint(String field, WQFunctionType function, String value) WQConstraint(String field, WQFunctionType function, String left, String right) WQConstraint(String field, WQFunctionType function, List<String> values) -
Method Summary
Modifier and TypeMethodDescriptionstatic WQConstraintstatic WQConstraintProduce a WebQueryConstraint from a Query String format parameterEncode this constraint in the query string value formatstatic WQConstraintstatic WQConstraintstatic WQConstraintstatic WQConstraintstatic WQConstraintstatic WQConstraintstatic WQConstraintin(String field, Collection<?> values) static WQConstraintstatic WQConstraintstatic WQConstraintstatic WQConstraintstatic WQConstraintstatic WQConstraintstatic WQConstraintstatic WQConstraintnot()static WQConstraintnotContains(String field, Object value) static WQConstraintnotIn(String field, Collection<?> values) static WQConstraintnotStartsWith(String field, Object value) static WQConstraintstatic WQConstraintstartsWith(String field, Object value) voidtoString()static String
-
Field Details
-
field
-
function
-
value
-
valuelist
-
value2
The second value (for binary functions).
Should only be supplied iffunctionis supplied and if it refers to a binary function such asWQFunctionType.RANGE
-
-
Constructor Details
-
WQConstraint
public WQConstraint() -
WQConstraint
-
WQConstraint
-
WQConstraint
-
-
Method Details
-
not
- Overrides:
notin classWQConstraintLine
-
toString
-
encodeValue
Encode this constraint in the query string value format- Returns:
-
eq
-
in
-
notIn
-
neq
-
isNull
-
isNotNull
-
lt
-
le
-
gt
-
ge
-
contains
-
notContains
-
startsWith
-
notStartsWith
-
range
-
eqRef
-
neqRef
-
leRef
-
ltRef
-
geRef
-
gtRef
-
decode
Produce a WebQueryConstraint from a Query String format parameter- Parameters:
field-rawValue-- Returns:
-
toQueryFragment
- Specified by:
toQueryFragmentin classWQConstraintLine
-
toString
-