I need to know data types of columns in a JDBC ResultSet.
I was able to get JDBC types, which are generated from Oracle types:
ResultSet rs = databaseMetaData.getColumns(null, "C##TMPUSER", null, null);
rs.next();
int code = rs.getInt(5);
String sqlJavaType = JDBCType.valueOf(code).getName();
which for example returns NUMERIC if the column in oracle is NUMBER.
This is the java sql Type, but I need the corresponding Java types, eg String, int, float, etc.
How I can get these data types?