Package ch.tocco.nice2.model.entity.api
Interface NiceDataModel
- All Superinterfaces:
DataModel
- All Known Implementing Classes:
DataModelImpl
The data-model which nice uses for internal representations.
This model includes DB-mappings and additional default information for objects.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(ConfigListener listener) @Nullable EntityModel
getEntityModel
(String model) boolean
hasRemovedEntity
(String name) A possibility to ask the configuration if something got removed.void
onReload()
void
removeListener
(ConfigListener listener) requireEntityModel
(String model) Methods inherited from interface ch.tocco.nice2.model.entity.api.DataModel
getTypeManager
-
Method Details
-
getEntityModels
Collection<EntityModel> getEntityModels()- Specified by:
getEntityModels
in interfaceDataModel
-
getEntityModel
- Specified by:
getEntityModel
in interfaceDataModel
- Parameters:
model
- the model's name- Returns:
- null if there is no such model
- See Also:
-
requireEntityModel
- Specified by:
requireEntityModel
in interfaceDataModel
- Parameters:
model
- the model's name- Throws:
ModelException
- If there is no such model.
-
addListener
-
removeListener
-
hasRemovedEntity
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()
-