public static ColumnMetaData getColumnMetaDataForColumn(MetaData parent, Column col)
{
String length = null;
String scale = null;
if (col.length() > 0)
{
length = "" + col.length();
}
if (col.scale() >= 0)
{
scale = "" + col.scale();
}
ColumnMetaData colmd = new ColumnMetaData(parent, col.name(), col.target(), col.targetMember(), col.jdbcType(), col.sqlType(),
length, scale, col.allowsNull(), col.defaultValue(), col.insertValue(), null, null, null);
addExtensionsToMetaData(colmd, col.extensions());
return colmd;
}