| Package | Description |
|---|---|
| org.sfm.jdbc |
JdbcMapper classes to map object from a csv file. |
| Modifier and Type | Method and Description |
|---|---|
JdbcMapperBuilder<T> |
JdbcMapperBuilder.addKey(String column)
add a new mapping to the specified column with a key column definition and an undefined type.
|
JdbcMapperBuilder<T> |
JdbcMapperBuilder.addMapper(FieldMapper<ResultSet,T> mapper)
append a FieldMapper to the mapping list.
|
JdbcMapperBuilder<T> |
JdbcMapperBuilder.addMapping(ResultSetMetaData metaData)
add the all the column present in the metaData
|
JdbcMapperBuilder<T> |
JdbcMapperBuilder.addMapping(String column)
add a new mapping to the specified column with an undefined type.
|
JdbcMapperBuilder<T> |
JdbcMapperBuilder.addMapping(String column,
FieldMapperColumnDefinition<JdbcColumnKey,ResultSet> columnDefinition)
add a new mapping to the specified column with the specified columnDefinition and an undefined type.
|
JdbcMapperBuilder<T> |
JdbcMapperBuilder.addMapping(String column,
int index)
add a new mapping to the specified column with the specified index and an undefined type.
|
JdbcMapperBuilder<T> |
JdbcMapperBuilder.addMapping(String column,
int index,
FieldMapperColumnDefinition<JdbcColumnKey,ResultSet> columnDefinition)
add a new mapping to the specified column with the specified index, specified column definition and an undefined type.
|
JdbcMapperBuilder<T> |
JdbcMapperBuilder.addMapping(String column,
int index,
int sqlType)
add a new mapping to the specified column with the specified index and the specified type.
|
JdbcMapperBuilder<T> |
JdbcMapperBuilder.addMapping(String column,
int index,
int sqlType,
FieldMapperColumnDefinition<JdbcColumnKey,ResultSet> columnDefinition)
add a new mapping to the specified column with the specified index, the specified type.
|
JdbcMapperBuilder<T> |
JdbcMapperBuilder.fieldMapperErrorHandler(FieldMapperErrorHandler<JdbcColumnKey> errorHandler)
the FieldMapperErrorHandler is called when a error occurred when mapping a field from the source to the target.
|
JdbcMapperBuilder<T> |
JdbcMapperBuilder.jdbcMapperErrorHandler(RowHandlerErrorHandler jdbcMapperErrorHandler)
the RowHandlerErrorHandler is called when an exception is thrown by the RowHandler in the forEach call.
|
<T> JdbcMapperBuilder<T> |
JdbcMapperFactory.newBuilder(Class<T> target)
Will create a instance of JdbcMapperBuilder on the specified target class.
|
<T> JdbcMapperBuilder<T> |
JdbcMapperFactory.newBuilder(Type target)
Will create a instance of JdbcMapperBuilder on the specified type.
|
<T> JdbcMapperBuilder<T> |
JdbcMapperFactory.newBuilder(TypeReference<T> target)
Will create a instance of JdbcMapperBuilder on the type T specified by the typeReference.
|
Copyright © 2015. All rights reserved.