All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.simpleflatmapper.jdbc.package-info Maven / Gradle / Ivy

Go to download

Java library to map flat record - ResultSet, csv - to java object with minimum configuration and low footprint.

There is a newer version: 9.0.2
Show newest version
/**
 * {@link org.simpleflatmapper.jdbc.JdbcMapper} classes to map object from a csv file. It is instantiated using the {@link org.simpleflatmapper.jdbc.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"));
*   }
* } *
*

*/ package org.simpleflatmapper.jdbc;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy