org.simpleflatmapper.jdbc.property.JdbcGetterFactoryProperty 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.
The newest version!
package org.simpleflatmapper.jdbc.property;
import org.simpleflatmapper.map.property.GetterFactoryProperty;
import org.simpleflatmapper.reflect.IndexedGetter;
import java.sql.ResultSet;
import java.sql.SQLException;
public class JdbcGetterFactoryProperty {
public static GetterFactoryProperty forType(final Class type, final ResultSetGetter getter) {
return GetterFactoryProperty.forType(type, getter);
}
public interface ResultSetGetter extends IndexedGetter {
T get(ResultSet ps, int i) throws SQLException;
}
}