org.sfm.jdbc.JdbcMapper Maven / Gradle / Ivy
package org.sfm.jdbc;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.sfm.map.Mapper;
import org.sfm.map.MappingException;
import org.sfm.utils.Handler;
public interface JdbcMapper extends Mapper {
/**
* Loop over the resultSet, map each row to a new instance of T and call back the handler
* @param rs the resultSet
* @param handle the handler that will get the callback
* @return the handler passed in
* @throws SQLException if sql error occurs
* @throws MappingException if an error occurs during the mapping
*/
> H forEach(ResultSet rs, H handle) throws SQLException, MappingException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy