Class DefaultColumnDataMapperProvider
- java.lang.Object
-
- de.akquinet.jbosscc.guttenbase.defaults.impl.DefaultColumnDataMapperProvider
-
- All Implemented Interfaces:
ColumnDataMapperProvider
public class DefaultColumnDataMapperProvider extends Object implements ColumnDataMapperProvider
Default implementation. To add further mapping you should simply extendDefaultColumnDataMapperProviderHint
and calladdMapping(ColumnType, ColumnType, ColumnDataMapper)
in the overriddenDefaultColumnDataMapperProviderHint.addMappings(DefaultColumnDataMapperProvider)
method.© 2012-2034 akquinet tech@spree
- Author:
- M. Dahm
-
-
Constructor Summary
Constructors Constructor Description DefaultColumnDataMapperProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMapping(ColumnType sourceColumnType, ColumnType targetColumnType, ColumnDataMapper columnDataMapper)
Specify additional mappingColumnDataMapper
findMapping(ColumnMetaData sourceColumnMetaData, ColumnMetaData targetColumnMetaData, ColumnType sourceColumnType, ColumnType targetColumnType)
Find mapping the given configuration.
-
-
-
Method Detail
-
findMapping
public ColumnDataMapper findMapping(ColumnMetaData sourceColumnMetaData, ColumnMetaData targetColumnMetaData, ColumnType sourceColumnType, ColumnType targetColumnType)
Find mapping the given configuration.- Specified by:
findMapping
in interfaceColumnDataMapperProvider
- Parameters:
sourceColumnMetaData
- source columntargetColumnMetaData
- target columnsourceColumnType
- as determined byColumnTypeResolver
targetColumnType
- as determined byColumnTypeResolver
-
addMapping
public void addMapping(ColumnType sourceColumnType, ColumnType targetColumnType, ColumnDataMapper columnDataMapper)
Specify additional mapping- Specified by:
addMapping
in interfaceColumnDataMapperProvider
-
-