Class ValidationHelper
java.lang.Object
ch.tocco.nice2.persist.core.api.validation.ValidationHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
applyEntityValidationResults
(Map<Entity, CompleteEntityValidationResult> completeResults, Map<Entity, EntityValidationResult> entityResults) static Map
<Entity, CompleteEntityValidationResult> createCompleteValidationResults
(List<Entity> entities) static Map
<Entity, EntityValidationResult> createEntityValidationResults
(List<Entity> entities, EntitiesValidator validator) static void
doValidate
(List<Entity> entities, Validation validation, ValidationContext validationContext) static void
doValidate
(List<Entity> entities, Validation validation, ValidationContext validationContext, boolean postFlush) static EntityModel
-
Method Details
-
doValidate
public static void doValidate(List<Entity> entities, Validation validation, ValidationContext validationContext) -
doValidate
public static void doValidate(List<Entity> entities, Validation validation, ValidationContext validationContext, boolean postFlush) -
getModel
-
createCompleteValidationResults
public static Map<Entity,CompleteEntityValidationResult> createCompleteValidationResults(List<Entity> entities) -
createEntityValidationResults
public static Map<Entity,EntityValidationResult> createEntityValidationResults(List<Entity> entities, EntitiesValidator validator) -
applyEntityValidationResults
public static void applyEntityValidationResults(Map<Entity, CompleteEntityValidationResult> completeResults, Map<Entity, EntityValidationResult> entityResults)
-