Interface ColumnDataMapper
-
- All Known Implementing Classes:
AbstractBlobToStringColumnDataMapper
,BigDecimalToLongColumnDataMapper
,BigIntLongToBigDecimalColumnDataMapper
,DefaultColumnDataMapper
,LongToBigDecimalColumnDataMapper
,TimestampToDateColumnDataMapper
public interface ColumnDataMapper
Map data contained in a column to some other type. I.e., the target column may have a different type and thus an INSERT needs conversion.© 2012-2034 akquinet tech@spree
- Author:
- M. Dahm
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isApplicable(ColumnMetaData sourceColumnMetaData, ColumnMetaData targetColumnMetaData)
Mapper can be used for the given columns?Object
map(ColumnMetaData sourceColumnMetaData, ColumnMetaData targetColumnMetaData, Object value)
Map object.
-
-
-
Method Detail
-
isApplicable
boolean isApplicable(ColumnMetaData sourceColumnMetaData, ColumnMetaData targetColumnMetaData)
Mapper can be used for the given columns?
-
map
Object map(ColumnMetaData sourceColumnMetaData, ColumnMetaData targetColumnMetaData, Object value) throws SQLException
Map object. Must be able to handle NULL values.- Throws:
SQLException
-
-