}
}
if (schemaPattern == null || schemaPattern.equals(SCHEMA_CATALOG)) {
OCMetadataCatalogCollection catalogCollection = metadata
.getCatalogs();
OCCatalogMetadataObject cmo = catalogCollection
.find(tableNamePattern);
if (cmo != null) {
OCMetadataAttributeCollection mac = cmo.getAttributes();
attribute2resultSet(mac, lrs, SCHEMA_CATALOG,
tableNamePattern);
int colSZ = catalogCollection.size();
// add Code
lrs.createRowAndSetValues(new Object[] { null, // TABLE_CAT
SCHEMA_CATALOG, // TABLE_SCHEM
tableNamePattern, // TABLE_NAME
"Code", // COLUMN_NAME
Types.VARCHAR, // DATA_TYPE
"VARCHAR", // TYPE_NAME
cmo.getCodeLength(), // COLUMN_SIZE
null, // BUFFER_LENGTH
null, // DECIMAL_DIGITS
Integer.valueOf(10), // NUM_PREC_RADIX
Integer.valueOf(columnNullableUnknown), // NULLABLE
null, // REMARKS