Module is.codion.framework.model
Package is.codion.framework.model
Interface ColumnConditionModel.Builder<T>
- Enclosing interface:
ColumnConditionModel<T>
public static interface ColumnConditionModel.Builder<T>
A builder for a
ColumnConditionModel-
Method Summary
Modifier and TypeMethodDescriptionbuild()negationIncludesNull(boolean negationIncludesNull) Specifies whether the negative operators include null values when translated to a query condition, matching exactly the rows their positive counterparts do not, instead of following SQL, only affecting a nullable column,EntityConditionModel.NEGATION_INCLUDES_NULLby default.Sets the initial operator, the oneAttributeConditionModel.clear()reverts to.Sets the available operators, by default all operators,Operator.EQUALonly for a boolean column.
-
Method Details
-
operators
Sets the available operators, by default all operators,Operator.EQUALonly for a boolean column.- Parameters:
operators- the available operators- Returns:
- this builder
- Throws:
IllegalArgumentException- in case of an empty list
-
operator
Sets the initial operator, the oneAttributeConditionModel.clear()reverts to. Defaults toOperator.EQUAL, or the first of the availableoperators(List)when specified.- Parameters:
operator- the initial operator, must be one of the available operators- Returns:
- this builder
-
negationIncludesNull
Specifies whether the negative operators include null values when translated to a query condition, matching exactly the rows their positive counterparts do not, instead of following SQL, only affecting a nullable column,EntityConditionModel.NEGATION_INCLUDES_NULLby default.- Parameters:
negationIncludesNull- true if the negative operators should include null values- Returns:
- this builder
-
build
ColumnConditionModel<T> build()- Returns:
- a new
ColumnConditionModelinstance - Throws:
IllegalArgumentException- in case the operators don't contain the initial operator
-