Module org.simpleflatmapper.jdbc
Package org.simpleflatmapper.jdbc
package org.simpleflatmapper.jdbc
JdbcMapper classes to map object from a csv file. It is instantiated using the JdbcMapperFactory
JdbcMapper<MyObject> jdbcMapper = JdbcMapperFactory.newInstance().newMapper(MyObject.class);
try (PreparedStatement ps = conn.prepareStatement("select id, email, my_property from MyTable")) {
try (ResultSet rs = ps.executeQuery()){
jdbcMapper.forEach(rs, (o) -> writer.append(o.toString()).append("\n"));
}
}
-
ClassDescriptionConnectedCrud<T,
K> ConnectedSelectQuery<T,P> Crud<T,K> CrudDSL<T,K> The builder is used to build a DiscriminatorMapper that will instantiate different types depending on the value of a specified field.JdbcMapper<T>JdbcMapper will map from aResultSetto an object of the specified type TJdbcMapperFactory allows you to customise the mappers and create an newInstance of it using a fluent syntax.QueryBinder<T>SelectQuery<T,P> Created by aroger on 08/11/2016.SQLFunction<P,R>