| Package | Description |
|---|---|
| org.sfm.jdbc |
JdbcMapper classes to map object from a csv file. |
| Modifier and Type | Method and Description |
|---|---|
JdbcMapperFactory |
JdbcMapperFactory.addAlias(String key,
String value)
Associate an alias on the column key to rename to value.
|
JdbcMapperFactory |
JdbcMapperFactory.addAliases(Map<String,String> aliases)
Associate the aliases value to the column key.
|
JdbcMapperFactory |
JdbcMapperFactory.addColumnDefinition(Predicate<? super JdbcColumnKey> predicate,
FieldMapperColumnDefinition<JdbcColumnKey,ResultSet> columnDefinition)
Associate the specified columnDefinition to the column matching the predicate.
|
JdbcMapperFactory |
JdbcMapperFactory.addColumnDefinition(String key,
FieldMapperColumnDefinition<JdbcColumnKey,ResultSet> columnDefinition)
Associate the specified columnDefinition to the specified column.
|
JdbcMapperFactory |
JdbcMapperFactory.addCustomFieldMapper(String key,
FieldMapper<ResultSet,?> fieldMapper)
Associate the specified FieldMapper for the specified column.
|
JdbcMapperFactory |
JdbcMapperFactory.addCustomGetter(String key,
Getter<ResultSet,?> getter)
Associate the specified Getter for the specified column.
|
JdbcMapperFactory |
JdbcMapperFactory.addKeys(String... columns)
Mark the specified columns as keys.
|
JdbcMapperFactory |
JdbcMapperFactory.disableAsm(boolean disableAsm) |
JdbcMapperFactory |
JdbcMapperFactory.failOnAsm(boolean b) |
JdbcMapperFactory |
JdbcMapperFactory.fieldMapperErrorHandler(FieldMapperErrorHandler<JdbcColumnKey> fieldMapperErrorHandler)
the FieldMapperErrorHandler is called when a error occurred when mapping a field from the source to the target.
|
JdbcMapperFactory |
JdbcMapperFactory.getterFactory(GetterFactory<ResultSet,JdbcColumnKey> getterFactory)
Override the default implementation of the GetterFactory used to get access to value from the ResultSet.
|
JdbcMapperFactory |
JdbcMapperFactory.ignorePropertyNotFound()
Change the mapperBuilderErrorHandler to an IgnoreMapperBuilderErrorHandler.
|
JdbcMapperFactory |
JdbcMapperFactory.mapperBuilderErrorHandler(MapperBuilderErrorHandler mapperBuilderErrorHandler)
Set the new MapperBuilderErrorHandler.
|
static JdbcMapperFactory |
JdbcMapperFactory.newInstance()
instantiate a new JdbcMapperFactory
|
JdbcMapperFactory |
JdbcMapperFactory.propertyNameMatcherFactory(PropertyNameMatcherFactory propertyNameMatcherFactory)
Override the default PropertyNameMatcherFactory with the specified factory.
|
JdbcMapperFactory |
JdbcMapperFactory.reflectionService(ReflectionService reflectionService)
Override the default implementation of the ReflectionService.
|
JdbcMapperFactory |
JdbcMapperFactory.rowHandlerErrorHandler(RowHandlerErrorHandler rowHandlerErrorHandler)
the RowHandlerErrorHandler is called when an exception is thrown by the RowHandler in the forEach call.
|
JdbcMapperFactory |
JdbcMapperFactory.useAsm(boolean useAsm) |
| Constructor and Description |
|---|
DiscriminatorJdbcBuilder(String column,
JdbcMapperFactory jdbcMapperFactory) |
Copyright © 2015. All rights reserved.