All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jarbframework.constraint.validation.DatabaseConstraintValidationStep Maven / Gradle / Ivy

The newest version!
package org.jarbframework.constraint.validation;

import org.jarbframework.constraint.metadata.database.ColumnMetadata;
import org.jarbframework.utils.bean.PropertyReference;

/**
 * Database constraint validation step that can be performed during a validate.
 * @author Jeroen van Schagen
 * @since 19-10-2011
 */
public interface DatabaseConstraintValidationStep {

    /**
     * Validates a property value on database column constraints.
     * @param propertyValue the property value to validate
     * @param propertyRef reference to the property
     * @param columnMetadata metadata of the column referenced by our property
     * @param validation the validation result in which violations are stored
     */
    void validate(Object propertyValue, PropertyReference propertyRef, ColumnMetadata columnMetadata, DatabaseValidationContext validation);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy