Class ProgressAdapter
java.lang.Object
ch.tocco.nice2.model.entity.api.schema.ProgressAdapter
- All Implemented Interfaces:
ValidationProgress
-
Field Summary
Fields inherited from interface ch.tocco.nice2.model.entity.api.schema.ValidationProgress
EMPTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addProgress
(ValidationProgress progress) void
enteringChecks
(int entityModels, int relationModels) After starting, database meta data is collected and then a simple count of models to validate is calculated.void
enteringEntityCheck
(int num, EntityModel model) Called before an entity model is validated.void
enteringRelationModel
(int num, RelationModel relationModel) Called before a relation model is validated.void
leavingEntityCheck
(int num, EntityModel model) Called after an entity model has been validated.void
leavingRelationModel
(int num, RelationModel relationModel) Called after the relation model is validated.void
onEnd
(SchemaModelValidator.Result result) Called after all validations have been performed with the final result.void
onStart()
Called right after the validation task has been started.void
removeProgress
(ValidationProgress progress)
-
Constructor Details
-
ProgressAdapter
-
-
Method Details
-
addProgress
-
removeProgress
-
onStart
public void onStart()Description copied from interface:ValidationProgress
Called right after the validation task has been started.- Specified by:
onStart
in interfaceValidationProgress
-
onEnd
Description copied from interface:ValidationProgress
Called after all validations have been performed with the final result.- Specified by:
onEnd
in interfaceValidationProgress
-
enteringChecks
public void enteringChecks(int entityModels, int relationModels) Description copied from interface:ValidationProgress
After starting, database meta data is collected and then a simple count of models to validate is calculated.- Specified by:
enteringChecks
in interfaceValidationProgress
-
enteringEntityCheck
Description copied from interface:ValidationProgress
Called before an entity model is validated.- Specified by:
enteringEntityCheck
in interfaceValidationProgress
-
leavingEntityCheck
Description copied from interface:ValidationProgress
Called after an entity model has been validated.- Specified by:
leavingEntityCheck
in interfaceValidationProgress
-
enteringRelationModel
Description copied from interface:ValidationProgress
Called before a relation model is validated.- Specified by:
enteringRelationModel
in interfaceValidationProgress
-
leavingRelationModel
Description copied from interface:ValidationProgress
Called after the relation model is validated.- Specified by:
leavingRelationModel
in interfaceValidationProgress
-