Class DefaultTableMapper
- java.lang.Object
-
- de.akquinet.jbosscc.guttenbase.defaults.impl.DefaultTableMapper
-
- All Implemented Interfaces:
TableMapper
public class DefaultTableMapper extends Object implements TableMapper
By default prepend schema name.© 2012-2034 akquinet tech@spree
- Author:
- M. Dahm
-
-
Constructor Summary
Constructors Constructor Description DefaultTableMapper()
DefaultTableMapper(CaseConversionMode caseConversionMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
fullyQualifiedTableName(TableMetaData source, DatabaseMetaData targetDatabaseMetaData)
TableMetaData
map(TableMetaData source, DatabaseMetaData targetDatabaseMetaData)
String
mapTableName(TableMetaData source, DatabaseMetaData targetDatabaseMetaData)
-
-
-
Constructor Detail
-
DefaultTableMapper
public DefaultTableMapper(CaseConversionMode caseConversionMode)
-
DefaultTableMapper
public DefaultTableMapper()
-
-
Method Detail
-
map
public TableMetaData map(TableMetaData source, DatabaseMetaData targetDatabaseMetaData)
- Specified by:
map
in interfaceTableMapper
- Returns:
- matching table in target data base or null
-
fullyQualifiedTableName
public String fullyQualifiedTableName(TableMetaData source, DatabaseMetaData targetDatabaseMetaData)
- Specified by:
fullyQualifiedTableName
in interfaceTableMapper
- Returns:
- fully qualifed table name in target data base, i.e. including schema prefix and escape characters
-
mapTableName
public String mapTableName(TableMetaData source, DatabaseMetaData targetDatabaseMetaData)
- Specified by:
mapTableName
in interfaceTableMapper
- Returns:
- plain table name in target data base
-
-