Interface ColumnValidator
-
- All Known Implementing Classes:
SimpleColumnValidator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ColumnValidator
Interface which allows for data manipulation/validation as values are being inserted into a database.- Author:
- James Ahlborn
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Objectvalidate(Column col, Object val)Validates and/or manipulates the given potential new value for the given column.
-
-
-
Method Detail
-
validate
Object validate(Column col, Object val) throws IOException
Validates and/or manipulates the given potential new value for the given column. This method may return an entirely different value or throw an exception if the input value is not valid.- Throws:
IOException
-
-