public interface IEntityValidationDao extends IEntityValidationCrud, ICdmEntityDao<EntityValidation>
IEntityConstraintViolationDao
provides the former perspective.
Together these methods provide all persistency operations required internally
by the CVI (notably EntityValidationTaskBase
s) and by clients. In
fact, strictly speaking implementors should override methods from the
superclass by throwing an exception. They should in any case not be exposed
via a service.Modifier and Type | Method and Description |
---|---|
java.util.List<EntityValidation> |
getEntitiesViolatingConstraint(java.lang.String validatorClass)
Get all entities that violated a particular constraint.
|
EntityValidation |
getEntityValidation(java.lang.String validatedEntityClass,
int validatedEntityId)
Get the validation result for a particular entity.
|
java.util.List<EntityValidation> |
getEntityValidations()
Get all validation results for all validated entities.
|
java.util.List<EntityValidation> |
getEntityValidations(Severity severity)
Get all validation results.
|
java.util.List<EntityValidation> |
getEntityValidations(java.lang.String validatedEntityClass)
Get all validation results for all validated entities of the specified
type.
|
java.util.List<EntityValidation> |
getEntityValidations(java.lang.String validatedEntityClass,
Severity severity)
Get all validation results for all entities of the specified type.
|
deleteEntityValidation, saveEntityValidation
clear, count, count, count, count, countByParam, countByParamWithRestrictions, delete, exists, findById, findByParam, findByParam, findByParamWithRestrictions, findByUuid, findByUuidWithoutFlush, flush, getSession, getType, group, list, list, list, list, list, list, list, list, list, load, load, load, loadList, lock, merge, merge, refresh, refresh, replace, save, saveAll, saveOrUpdate, saveOrUpdateAll, update
EntityValidation getEntityValidation(java.lang.String validatedEntityClass, int validatedEntityId)
validatedEntityClass
- The fully qualified class name of the entity's class.validatedEntityId
- The id of the entityEntityValidation
or null if the entity has not
been validated yetjava.util.List<EntityValidation> getEntityValidations()
EntityValidation
sjava.util.List<EntityValidation> getEntityValidations(java.lang.String validatedEntityClass)
validatedEntityClass
- The fully qualified class name of the entity classEntityValidation
sjava.util.List<EntityValidation> getEntitiesViolatingConstraint(java.lang.String validatorClass)
validatorClass
argument is a String
(like all the
***Class
arguments). This is because it is stored as such in the
database, and also because the Class
object itself may not be on
the caller's classpath - e.g. when called from the TaxEditor.validatorClass
- The fully qualified class name of the
ConstraintValidator
.EntityValidation
sjava.util.List<EntityValidation> getEntityValidations(java.lang.String validatedEntityClass, Severity severity)
validatedEntityClass
- The fully qualified class name of the entity class.severity
- The severity of the EntityConstraintViolation
s
associated with the EntityValidation
EntityValidation
sjava.util.List<EntityValidation> getEntityValidations(Severity severity)
severity
- The severity of the EntityConstraintViolation
s
associated with the EntityValidation
EntityValidation
sCopyright © 2007-2020 EDIT. All Rights Reserved.