org.simpleflatmapper.jdbc.SelectQuery Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sfm-jdbc Show documentation
Show all versions of sfm-jdbc Show documentation
Java library to map flat record - ResultSet, csv - to java object with minimum configuration and low footprint.
package org.simpleflatmapper.jdbc;
import org.simpleflatmapper.util.CheckedConsumer;
import java.sql.Connection;
import java.sql.SQLException;
/**
* Created by aroger on 08/11/2016.
*/
public interface SelectQuery {
T readFirst(Connection connection, P p) throws SQLException;
> C read(Connection connection, P p, C consumer) throws SQLException;
}