Class EntityConditionModelFactory

java.lang.Object
is.codion.framework.model.EntityConditionModelFactory
All Implemented Interfaces:
is.codion.common.model.table.ColumnConditionModel.Factory<is.codion.framework.domain.entity.attribute.Attribute<?>>

public class EntityConditionModelFactory extends Object implements is.codion.common.model.table.ColumnConditionModel.Factory<is.codion.framework.domain.entity.attribute.Attribute<?>>
A default ColumnConditionModel.Factory implementation for creating condition models.
  • Constructor Details

    • EntityConditionModelFactory

      public EntityConditionModelFactory(is.codion.framework.db.EntityConnectionProvider connectionProvider)
      Instantiates a new EntityConditionModelFactory.
      Parameters:
      connectionProvider - the connection provider
  • Method Details

    • createConditionModel

      public Optional<is.codion.common.model.table.ColumnConditionModel<? extends is.codion.framework.domain.entity.attribute.Attribute<?>,?>> createConditionModel(is.codion.framework.domain.entity.attribute.Attribute<?> attribute)
      Specified by:
      createConditionModel in interface is.codion.common.model.table.ColumnConditionModel.Factory<is.codion.framework.domain.entity.attribute.Attribute<?>>
    • connectionProvider

      protected final is.codion.framework.db.EntityConnectionProvider connectionProvider()
      Returns:
      the underlying connection provider
    • definition

      protected final is.codion.framework.domain.entity.EntityDefinition definition(is.codion.framework.domain.entity.EntityType entityType)
      Parameters:
      entityType - the entity type
      Returns:
      the entity definition