Interface ForeignKeyModelLink<M extends EntityModel<M,E,T>,E extends EntityEditModel,T extends EntityTableModel<E>>

Type Parameters:
M - the EntityModel type
E - the EntityEditModel type
T - the EntityTableModel type
All Superinterfaces:
ModelLink<M,E,T>

public interface ForeignKeyModelLink<M extends EntityModel<M,E,T>,E extends EntityEditModel,T extends EntityTableModel<E>> extends ModelLink<M,E,T>
Represents a link between two entity models based on a foreign key.
  • Field Details

    • SET_VALUE_ON_INSERT

      static final PropertyValue<Boolean> SET_VALUE_ON_INSERT
      Specifies whether a linked model should automatically set the foreign key value to the entity inserted by the parent model.
      • Value type: Boolean
      • Default value: true
    • SET_CONDITION_ON_INSERT

      static final PropertyValue<Boolean> SET_CONDITION_ON_INSERT
      Specifies whether a linked model should automatically search by the entity inserted by the parent model.
      • Value type: Boolean
      • Default value: false
    • REFRESH_ON_SELECTION

      static final PropertyValue<Boolean> REFRESH_ON_SELECTION
      Specifies whether a linked model should be automatically refreshed when the selection in the parent model changes.
      • Value type: Boolean
      • Default value: true
    • CLEAR_VALUE_ON_EMPTY_SELECTION

      static final PropertyValue<Boolean> CLEAR_VALUE_ON_EMPTY_SELECTION
      Specifies whether a linked model sets the parent foreign key value to null when null or no value is selected in a parent model
      • Value type: Boolean
      • Default value: false
    • CLEAR_CONDITION_ON_EMPTY_SELECTION

      static final PropertyValue<Boolean> CLEAR_CONDITION_ON_EMPTY_SELECTION
      Specifies whether a linked model clears the foreign key search condition when null or no value is selected in a parent model
      • Value type: Boolean
      • Default value: true
  • Method Details