Class DefaultColumnTypeMapper
- java.lang.Object
-
- de.akquinet.jbosscc.guttenbase.mapping.DefaultColumnTypeMapper
-
- All Implemented Interfaces:
ColumnTypeMapper
public class DefaultColumnTypeMapper extends Object implements ColumnTypeMapper
Default uses same data type as source© 2012-2034 akquinet tech@spree
-
-
Constructor Summary
Constructors Constructor Description DefaultColumnTypeMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultColumnTypeMapper
addMapping(DatabaseType sourceDB, DatabaseType targetDB, String sourceTypeName, String targetTypeName)
protected String
createPrecisionClause(ColumnMetaData columnMetaData)
protected String
getColumnType(ColumnMetaData columnMetaData)
Override this method if you just want to change the way column types are mappedString
getMapping(DatabaseType sourceDB, DatabaseType targetDB, String columnType)
String
mapColumnType(ColumnMetaData columnMetaData, DatabaseType sourceDatabaseType, DatabaseType targetDatabaseType)
-
-
-
Method Detail
-
mapColumnType
public String mapColumnType(ColumnMetaData columnMetaData, DatabaseType sourceDatabaseType, DatabaseType targetDatabaseType)
- Specified by:
mapColumnType
in interfaceColumnTypeMapper
- Returns:
- target database type including precision and optional not null constraint clause
-
getColumnType
protected String getColumnType(ColumnMetaData columnMetaData)
Override this method if you just want to change the way column types are mapped- Returns:
- target database type including precision
-
createPrecisionClause
protected String createPrecisionClause(ColumnMetaData columnMetaData)
-
getMapping
public String getMapping(DatabaseType sourceDB, DatabaseType targetDB, String columnType)
-
addMapping
public final DefaultColumnTypeMapper addMapping(DatabaseType sourceDB, DatabaseType targetDB, String sourceTypeName, String targetTypeName)
-
-