| Interface | Description |
|---|---|
| BreakDetectorFactory<T> | |
| JdbcMapper<T> |
JdbcMapper will map from a
ResultSet to an object of the specified type T |
| Class | Description |
|---|---|
| DiscriminatorJdbcBuilder<T> |
The builder is used to build a DiscriminatorJdbcMapper that will instantiate
different types depending on the value of a specified field.
|
| JdbcColumnKey | |
| JdbcMapperBuilder<T> | |
| JdbcMapperFactory |
JdbcMapperFactory allows you to customise the mappers and create an instance of it using a fluent syntax.
|
| JdbcMappingContextFactoryBuilder |
JdbcMapper classes to map object from a csv file. It is instantiated using the JdbcMapperFactory
JdbcMapper<MyObject> mapper = JdbcMapperFactory.newInstance().newMapper(MyObject.class);
try (PreparedStatement ps = conn.prepareStatement("select id, email, my_property from MyTable")) {
try (ResultSet rs = ps.executeQuery()){
mapper.forEach(rs, (o) -> writer.append(o.toString()).append("\n"));
}
}
Copyright © 2015. All rights reserved.