Class DefaultColumnMapper
- java.lang.Object
-
- de.akquinet.jbosscc.guttenbase.defaults.impl.DefaultColumnMapper
-
- All Implemented Interfaces:
ColumnMapper
- Direct Known Subclasses:
DroppingColumnMapper
public class DefaultColumnMapper extends Object implements ColumnMapper
By default, return column with same name ignoring case. You may however configure case and escaping the column names explicitely.© 2012-2034 akquinet tech@spree
- Author:
- M. Dahm
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.akquinet.jbosscc.guttenbase.mapping.ColumnMapper
ColumnMapper.ColumnMapperResult
-
-
Constructor Summary
Constructors Constructor Description DefaultColumnMapper()
DefaultColumnMapper(CaseConversionMode caseConversionMode, String escapeCharacter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColumnMapper.ColumnMapperResult
map(ColumnMetaData source, TableMetaData targetTableMetaData)
Return matching columns in target table.String
mapColumnName(ColumnMetaData columnMetaData, TableMetaData targetTableMetaData)
Map the way column names are used in statements.
-
-
-
Constructor Detail
-
DefaultColumnMapper
public DefaultColumnMapper(CaseConversionMode caseConversionMode, String escapeCharacter)
-
DefaultColumnMapper
public DefaultColumnMapper()
-
-
Method Detail
-
mapColumnName
public String mapColumnName(ColumnMetaData columnMetaData, TableMetaData targetTableMetaData)
Description copied from interface:ColumnMapper
Map the way column names are used in statements. Usually you won't need that, but sometimes you want to map the names, e.g. to add `name` backticks, in order to escape special characters such as white space.- Specified by:
mapColumnName
in interfaceColumnMapper
-
map
public ColumnMapper.ColumnMapperResult map(ColumnMetaData source, TableMetaData targetTableMetaData)
Description copied from interface:ColumnMapper
Return matching columns in target table. Must not be NULL.- Specified by:
map
in interfaceColumnMapper
-
-