com.github.rkmk.mapper.FieldMapperFactory Maven / Gradle / Ivy
package com.github.rkmk.mapper;
import java.sql.ResultSet;
import java.sql.SQLException;
public interface FieldMapperFactory {
public T getValue(ResultSet rs, int index, Class> type) throws SQLException;
public Boolean accepts(Class> type);
public default T getNullOrValue(Class> type, ResultSet rs, T value) throws SQLException {
return rs.wasNull() && !type.isPrimitive() ? null : value ;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy