Need some help regarding jdbc metadata. I am using ResultsetMetaData to get metadata of columns of a table on Oracle10g. I am using ojdbc14.jar. There is a field in table ID declared as Number . This field is being read with jdbc at runtime to get its metadata attributes. ResultSetMetaData.getColumnClassName() is returning java.math.BigDecimal while I am expecting it to be Integer or int or long or Long type. I even tried creating table with statement with explicitly defining int type for ID column as
CREATE TABLE COST_DETAILS ( ID **INT** Primary Key...
but still ResultSetMetaData is returning BigDecimal for ID column.
Is there any way to create table with any particular column type so that it will retrun int/long type?
or is ResultsetMetaData always returns BigDecimal for Oracle.