Renaming: since JdbcNormalizer can be expressed without a dependency on JDBC (default implementation is keyed by Java type), and it is not "normalizing" the values (except maybe DecimalNormalizer that changes value scale), going to refactor this to ValueConverter
New API making it a functional interface:
public interface ValueConverter {
default Object convert(Object value) {
return convert(value, -1);
}
Object convert(Object value, int scale);
}
A few improvements/changes to JdbcNormalizer API:
Renaming: since
JdbcNormalizer
can be expressed without a dependency on JDBC (default implementation is keyed by Java type), and it is not "normalizing" the values (except maybe DecimalNormalizer that changes value scale), going to refactor this toValueConverter
New API making it a functional interface: