Module is.codion.framework.model
Package is.codion.framework.model
Interface ForeignKeyConditionModel.Builder
- Enclosing interface:
ForeignKeyConditionModel
public static interface ForeignKeyConditionModel.Builder
A builder for a
ForeignKeyConditionModel.
The EQUAL operand is based on either a EntitySearchModel or a EntityComboBoxModel, not both.-
Method Summary
Modifier and TypeMethodDescriptionbuild()equalComboBoxModel(EntityComboBoxModel equalComboBoxModel) Note that this combo box model is linked to the EQUAL operand, so no linking is required when constructing a UI component.equalSearchModel(EntitySearchModel equalSearchModel) Note that this search model is linked to the EQUAL operand, so no linking is required when constructing a UI component.inSearchModel(EntitySearchModel inSearchModel) Note that this search model is linked to the IN operand, so no linking is required when constructing a UI component.Sets the initial operator, the oneAttributeConditionModel.clear()reverts to.
-
Method Details
-
equalSearchModel
Note that this search model is linked to the EQUAL operand, so no linking is required when constructing a UI component.- Parameters:
equalSearchModel- the search model to use for the EQUAL operand- Returns:
- this builder
-
equalComboBoxModel
Note that this combo box model is linked to the EQUAL operand, so no linking is required when constructing a UI component.- Parameters:
equalComboBoxModel- the combo box model to use for the EQUAL operand- Returns:
- this builder
-
inSearchModel
Note that this search model is linked to the IN operand, so no linking is required when constructing a UI component.- Parameters:
inSearchModel- the search model to use for the IN operand- Returns:
- this builder
-
operator
Sets the initial operator, the oneAttributeConditionModel.clear()reverts to. Defaults to the first of the availableAttributeConditionModel.operators()—Operator.EQUALwhen an EQUAL operand is available, otherwiseOperator.IN.- Parameters:
operator- the initial operator, must be one of the available operators- Returns:
- this builder
-
build
ForeignKeyConditionModel build()- Returns:
- a new
ForeignKeyConditionModelinstance
-