/*******************************************************
* HardCoding Column metadata details for the given column
********************************************************/
JcrType type = JcrType.typeInfo(dataType);
if (type == null) {
throw new RuntimeException("Program error: jcr type " + dataType + " not found");
}
metadataMap.put(ResultsMetadataConstants.CATALOG, catalogName);
metadataMap.put(ResultsMetadataConstants.TABLE, tableName);
metadataMap.put(ResultsMetadataConstants.COLUMN, columnName);
metadataMap.put(ResultsMetadataConstants.DATA_TYPE, dataType);
metadataMap.put(ResultsMetadataConstants.PRECISION, type.getDefaultPrecision());
metadataMap.put(ResultsMetadataConstants.RADIX, new Integer(10));
metadataMap.put(ResultsMetadataConstants.SCALE, new Integer(0));
metadataMap.put(ResultsMetadataConstants.AUTO_INCREMENTING, Boolean.FALSE);
metadataMap.put(ResultsMetadataConstants.CASE_SENSITIVE, caseSensitive);
metadataMap.put(ResultsMetadataConstants.NULLABLE, nullable);
metadataMap.put(ResultsMetadataConstants.SEARCHABLE, searchable);
metadataMap.put(ResultsMetadataConstants.SIGNED, signed);
metadataMap.put(ResultsMetadataConstants.WRITABLE, writable);
metadataMap.put(ResultsMetadataConstants.CURRENCY, Boolean.FALSE);
metadataMap.put(ResultsMetadataConstants.DISPLAY_SIZE, type.getNominalDisplaySize());
return metadataMap;
}