Interface ConditionModel.SetCondition<T>
- Type Parameters:
T
- the value type
- Enclosing interface:
ConditionModel<T>
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
betweenExclusive
(@Nullable T lower, @Nullable T upper) boolean
Sets the operator toOperator.EQUAL
and the operand tovalue
.boolean
greaterThan
(@Nullable T value) Sets the operator toOperator.GREATER_THAN
and the operand tovalue
.boolean
greaterThanOrEqualTo
(@Nullable T value) Sets the operator toOperator.GREATER_THAN_OR_EQUAL
and the operand tovalue
.boolean
in
(Collection<T> values) Sets the operator toOperator.IN
and the operands tovalues
.boolean
Sets the operator toOperator.IN
and the operands tovalues
.boolean
Sets the operator toOperator.NOT_EQUAL
, the operand tonull
and enables this condition.boolean
isNull()
Sets the operator toOperator.EQUAL
, the operand tonull
and enables this condition.boolean
Sets the operator toOperator.LESS_THAN
and the operand tovalue
.boolean
lessThanOrEqualTo
(@Nullable T value) Sets the operator toOperator.LESS_THAN_OR_EQUAL
and the operand tovalue
.boolean
notBetween
(@Nullable T lower, @Nullable T upper) boolean
notBetweenExclusive
(@Nullable T lower, @Nullable T upper) boolean
notEqualTo
(@Nullable T value) Sets the operator toOperator.NOT_EQUAL
and the operand tovalue
.boolean
notIn
(Collection<T> values) Sets the operator toOperator.NOT_IN
and the operands tovalues
.boolean
Sets the operator toOperator.IN
and the operands tovalues
.
-
Method Details
-
isNull
boolean isNull()Sets the operator to
Operator.EQUAL
, the operand tonull
and enables this condition.- Returns:
- true if the condition state changed
-
isNotNull
boolean isNotNull()Sets the operator to
Operator.NOT_EQUAL
, the operand tonull
and enables this condition.- Returns:
- true if the condition state changed
-
equalTo
Sets the operator to
Operator.EQUAL
and the operand tovalue
.Enables the condition if
value
is non-null, otherwise disables it.- Parameters:
value
- the operand- Returns:
- true if the condition state changed
-
notEqualTo
Sets the operator to
Operator.NOT_EQUAL
and the operand tovalue
.Enables the condition if
value
is non-null, otherwise disables it.- Parameters:
value
- the operand- Returns:
- true if the condition state changed
-
greaterThan
Sets the operator to
Operator.GREATER_THAN
and the operand tovalue
.Enables the condition if
value
is non-null, otherwise disables it.- Parameters:
value
- the operand- Returns:
- true if the condition state changed
-
greaterThanOrEqualTo
Sets the operator to
Operator.GREATER_THAN_OR_EQUAL
and the operand tovalue
.Enables the condition if
value
is non-null, otherwise disables it.- Parameters:
value
- the operand- Returns:
- true if the condition state changed
-
lessThan
Sets the operator to
Operator.LESS_THAN
and the operand tovalue
.Enables the condition if
value
is non-null, otherwise disables it.- Parameters:
value
- the operand- Returns:
- true if the condition state changed
-
lessThanOrEqualTo
Sets the operator to
Operator.LESS_THAN_OR_EQUAL
and the operand tovalue
.Enables the condition if
value
is non-null, otherwise disables it.- Parameters:
value
- the operand- Returns:
- true if the condition state changed
-
in
Sets the operator to
Operator.IN
and the operands tovalues
.Enables the condition if
values
is not empty, otherwise disables it.- Parameters:
values
- the operands- Returns:
- true if the condition state changed
-
in
Sets the operator to
Operator.IN
and the operands tovalues
.Enables the condition if
values
is not empty, otherwise disables it.- Parameters:
values
- the operands- Returns:
- true if the condition state changed
-
notIn
Sets the operator to
Operator.IN
and the operands tovalues
.Enables the condition if
values
is not empty, otherwise disables it.- Parameters:
values
- the operands- Returns:
- true if the condition state changed
-
notIn
Sets the operator to
Operator.NOT_IN
and the operands tovalues
.Enables the condition if
values
is not empty, otherwise disables it.- Parameters:
values
- the operands- Returns:
- true if the condition state changed
-
betweenExclusive
Sets the operator to
Operator.BETWEEN_EXCLUSIVE
and the operands tolower
andupper
.Enables the condition if both operands are non-null, otherwise disables it.
- Parameters:
lower
- the lower boundupper
- the upper bound- Returns:
- true if the condition state changed
-
notBetweenExclusive
Sets the operator to
Operator.NOT_BETWEEN_EXCLUSIVE
and the operands tolower
andupper
.Enables the condition if both operands are non-null, otherwise disables it.
- Parameters:
lower
- the lower boundupper
- the upper bound- Returns:
- true if the condition state changed
-
between
Sets the operator to
Operator.BETWEEN
and the operands tolower
andupper
.Enables the condition if both operands are non-null, otherwise disables it.
- Parameters:
lower
- the lower boundupper
- the upper bound- Returns:
- true if the condition state changed
-
notBetween
Sets the operator to
Operator.NOT_BETWEEN
and the operands tolower
andupper
.Enables the condition if both operands are non-null, otherwise disables it.
- Parameters:
lower
- the lower boundupper
- the upper bound- Returns:
- true if the condition state changed
-