Module is.codion.framework.model
Package is.codion.framework.model
Class EntityConditionModelFactory
java.lang.Object
is.codion.framework.model.EntityConditionModelFactory
- All Implemented Interfaces:
ColumnConditionModel.Factory<Attribute<?>>
- Direct Known Subclasses:
SwingEntityConditionModelFactory
public class EntityConditionModelFactory
extends Object
implements ColumnConditionModel.Factory<Attribute<?>>
A default
ColumnConditionModel.Factory
implementation for creating condition models.-
Constructor Summary
ConstructorsConstructorDescriptionEntityConditionModelFactory
(EntityConnectionProvider connectionProvider) Instantiates a newEntityConditionModelFactory
. -
Method Summary
Modifier and TypeMethodDescriptionprotected final EntityConnectionProvider
Optional<ColumnConditionModel<? extends Attribute<?>,
?>> createConditionModel
(Attribute<?> attribute) Creates aColumnConditionModel
for a given columnprotected final EntityDefinition
definition
(EntityType entityType)
-
Constructor Details
-
EntityConditionModelFactory
Instantiates a newEntityConditionModelFactory
.- Parameters:
connectionProvider
- the connection provider
-
-
Method Details
-
createConditionModel
public Optional<ColumnConditionModel<? extends Attribute<?>,?>> createConditionModel(Attribute<?> attribute) Description copied from interface:ColumnConditionModel.Factory
Creates aColumnConditionModel
for a given column- Specified by:
createConditionModel
in interfaceColumnConditionModel.Factory<Attribute<?>>
- Parameters:
attribute
- the identifier of the column for which to create aColumnConditionModel
- Returns:
- a
ColumnConditionModel
for the given column, an empty Optional if filtering should not be allowed for this column
-
connectionProvider
- Returns:
- the underlying connection provider
-
definition
- Parameters:
entityType
- the entity type- Returns:
- the entity definition
-