Interface NiceDataModel

All Superinterfaces:
DataModel
All Known Implementing Classes:
DataModelImpl

public interface NiceDataModel extends DataModel
The data-model which nice uses for internal representations. This model includes DB-mappings and additional default information for objects.
  • Method Details

    • getEntityModels

      Collection<EntityModel> getEntityModels()
      Specified by:
      getEntityModels in interface DataModel
    • getEntityModel

      @Nullable @Nullable EntityModel getEntityModel(String model)
      Specified by:
      getEntityModel in interface DataModel
      Parameters:
      model - the model's name
      Returns:
      null if there is no such model
      See Also:
    • requireEntityModel

      EntityModel requireEntityModel(String model) throws ModelException
      Specified by:
      requireEntityModel in interface DataModel
      Parameters:
      model - the model's name
      Throws:
      ModelException - If there is no such model.
    • addListener

      void addListener(ConfigListener listener)
    • removeListener

      void removeListener(ConfigListener listener)
    • hasRemovedEntity

      boolean hasRemovedEntity(String name)
      A possibility to ask the configuration if something got removed. This is importat to remove dependend stuff.

      For example we remove the Field 'username' on an entity. Then the form-system need to know that this it's removed explictly and no spelling-error in the form-configuration. Then the form-system can remove the field aswell which would normally show this entity-field.
    • onReload

      void onReload()