I'm retrieving JDBC metadata, including java.sql.types, from a ResultSet. Based on that, I need a factory method that will return the data from each column in a separate appropriate Java class. For instance, a java.sql.Types.DECIMAL should be returned as a java.math.BigDecimal.
Is anyone aware of an existing method that will do this for me? At least, is there an existing Map representing which conversions should be done?