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 TypeMethodDescriptionvoidaddListener(ConfigListener listener) @Nullable EntityModelgetEntityModel(String model) booleanhasRemovedEntity(String name) A possibility to ask the configuration if something got removed.voidonReload()voidremoveListener(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:
getEntityModelsin interfaceDataModel
-
getEntityModel
- Specified by:
getEntityModelin interfaceDataModel- Parameters:
model- the model's name- Returns:
- null if there is no such model
- See Also:
-
requireEntityModel
- Specified by:
requireEntityModelin 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()
-