Interface ConstraintContainer<T>
- All Known Implementing Classes:
WebQuery
,WQConstraints
,WQGroup
public interface ConstraintContainer<T>
-
Method Summary
Modifier and TypeMethodDescriptionadd
(WQConstraintLine line) default WQGroup
and()
Construct a new OR group and return it for method chainingdefault T
Construct a new AND group, using the supplier to add the constraints to the group.default T
default T
Assert that a field equals one of the provided values.default T
eq
(String field, Collection<?> values) Assert that a field equals one of the provided values.default T
default T
default T
default T
default T
default T
default T
in
(String field, Collection<?> values) default T
default T
default T
default T
default T
default T
default T
default T
default WQGroup
none()
default T
notContains
(String field, Object value) default T
default T
notIn
(String field, Collection<?> values) default T
notStartsWith
(String field, Object value) default WQGroup
or()
Construct a new OR group and return it for method chainingdefault T
Construct a new OR group, using the supplier to add the constraints to the group.default T
default T
startsWith
(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 originalWQGroup
for method chaining- Parameters:
consumer
-- Returns:
-
or
Construct a new OR group, using the supplier to add the constraints to the group. Returns the originalWQGroup
for method chaining- Parameters:
consumer
-- Returns:
-