Interface EntityConditionModel.Builder

Enclosing interface:
EntityConditionModel

public static interface EntityConditionModel.Builder
  • Method Details

    • exclude

      EntityConditionModel.Builder exclude(Attribute<?>... attributes)
      Excludes the given columns and foreign keys, no condition model being created for them.
      Parameters:
      attributes - the columns and foreign keys to exclude
      Returns:
      this builder
    • condition

      <T> EntityConditionModel.Builder condition(Column<T> column, Consumer<ColumnConditionModel.Builder<T>> condition)
      Configures the condition model for the given column, the builder received being initialized with the column defaults. Replaces any previous configuration of the given column.
      Type Parameters:
      T - the column type
      Parameters:
      column - the column
      condition - configures the condition model builder
      Returns:
      this builder
    • condition

      Configures the condition model for the given foreign key, the builder received being initialized with the foreign key defaults, the caption included. Replaces any previous configuration of the given foreign key.
      Parameters:
      foreignKey - the foreign key
      condition - configures the condition model builder
      Returns:
      this builder
    • build

      Returns:
      a new EntityConditionModel instance
      Throws:
      IllegalArgumentException - in case an excluded or configured attribute is not a column or foreign key of the underlying entity, or is both excluded and configured