Module is.codion.framework.model
Package is.codion.framework.model
Interface ForeignKeyConditionModel
- All Superinterfaces:
AttributeConditionModel<Entity>,ConditionModel<Entity>
A foreign key condition model. The
Operator.EQUAL operand is based on either a EntitySearchModel
or a EntityComboBoxModel, the Operator.IN operand on a EntitySearchModel.- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface is.codion.common.model.condition.ConditionModel
ConditionModel.Operands<T>, ConditionModel.SetCondition<T>, ConditionModel.Wildcard -
Field Summary
Fields inherited from interface is.codion.common.model.condition.ConditionModel
CASE_SENSITIVE, WILDCARD, WILDCARD_CHARACTER -
Method Summary
Methods inherited from interface is.codion.framework.model.AttributeConditionModel
accepts, autoEnable, caseSensitive, clear, condition, dateTimePattern, enabled, format, locked, operands, operator, operators, set, valueClassMethods inherited from interface is.codion.common.model.condition.ConditionModel
changed
-
Method Details
-
attribute
ForeignKey attribute()- Specified by:
attributein interfaceAttributeConditionModel<Entity>- Returns:
- the attribute
-
equalSearchModel
Optional<EntitySearchModel> equalSearchModel()- Returns:
- the
EntitySearchModelto use for the EQUAL operand, an emptyOptionalif the EQUAL operand is not based on a search model
-
equalComboBoxModel
Optional<EntityComboBoxModel> equalComboBoxModel()- Returns:
- the
EntityComboBoxModelto use for the EQUAL operand, an emptyOptionalif the EQUAL operand is not based on a combo box model
-
inSearchModel
Optional<EntitySearchModel> inSearchModel()- Returns:
- the
EntitySearchModelto use for the IN operand, an emptyOptionalif the IN operand is not available
-
builder
- Parameters:
foreignKey- the foreign key- Returns:
- a new
ForeignKeyConditionModel.Builder
-