Interface ConstraintContainer<T>
- All Known Implementing Classes:
WebQuery,WQConstraints,WQGroup
public interface ConstraintContainer<T>
-
Method Summary
Modifier and TypeMethodDescriptionadd(WQConstraintLine line) default WQGroupand()Construct a new OR group and return it for method chainingdefault TConstruct a new AND group, using the supplier to add the constraints to the group.default Tdefault TAssert that a field equals one of the provided values.default Teq(String field, Collection<?> values) Assert that a field equals one of the provided values.default Tdefault Tdefault Tdefault Tdefault Tdefault Tdefault Tin(String field, Collection<?> values) default Tdefault Tdefault Tdefault Tdefault Tdefault Tdefault Tdefault Tdefault WQGroupnone()default TnotContains(String field, Object value) default Tdefault TnotIn(String field, Collection<?> values) default TnotStartsWith(String field, Object value) default WQGroupor()Construct a new OR group and return it for method chainingdefault TConstruct a new OR group, using the supplier to add the constraints to the group.default Tdefault TstartsWith(String field, Object value)
-
Method Details
-
add
-
eq
Assert that a field equals one of the provided values. Implicitly creates a new OR group if multiple values are supplied- Parameters:
field-values-- Returns:
-
eq
Assert that a field equals one of the provided values. Implicitly creates a new OR group if multiple values are supplied. At least one value must be supplied.- Parameters:
field-values-- Returns:
-
in
-
in
-
notIn
-
notIn
-
neq
-
isNull
-
isNotNull
-
lt
-
le
-
gt
-
ge
-
contains
-
notContains
-
startsWith
-
notStartsWith
-
range
-
eqRef
-
neqRef
-
leRef
-
ltRef
-
geRef
-
gtRef
-
and
Construct a new OR group and return it for method chaining- Returns:
-
or
Construct a new OR group and return it for method chaining- Returns:
-
none
-
and
Construct a new AND group, using the supplier to add the constraints to the group. Returns the originalWQGroupfor method chaining- Parameters:
consumer-- Returns:
-
or
Construct a new OR group, using the supplier to add the constraints to the group. Returns the originalWQGroupfor method chaining- Parameters:
consumer-- Returns:
-