private void applyColumnOverrides(TableConfiguration tc,
Map<ActualTableName, List<IntrospectedColumn>> columns) {
for (Map.Entry<ActualTableName, List<IntrospectedColumn>> entry : columns
.entrySet()) {
for (IntrospectedColumn introspectedColumn : entry.getValue()) {
ColumnOverride columnOverride = tc
.getColumnOverride(introspectedColumn
.getActualColumnName());
if (columnOverride != null) {
if (logger.isDebugEnabled()) {
logger.debug(getString("Tracing.4", //$NON-NLS-1$
introspectedColumn.getActualColumnName(), entry
.getKey().toString()));
}
if (stringHasValue(columnOverride
.getJavaProperty())) {
introspectedColumn.setJavaProperty(columnOverride
.getJavaProperty());
}
if (stringHasValue(columnOverride
.getJavaType())) {
introspectedColumn
.setFullyQualifiedJavaType(new FullyQualifiedJavaType(
columnOverride.getJavaType()));
}
if (stringHasValue(columnOverride
.getJdbcType())) {
introspectedColumn.setJdbcTypeName(columnOverride
.getJdbcType());
}
if (stringHasValue(columnOverride
.getTypeHandler())) {
introspectedColumn.setTypeHandler(columnOverride
.getTypeHandler());
}
if (columnOverride.isColumnNameDelimited()) {
introspectedColumn.setColumnNameDelimited(true);
}
introspectedColumn.setProperties(columnOverride
.getProperties());
}
}
}
}