Oracle8i JDBC Developer's Guide and Reference Release 2 (8.1.6) A81354-01 |
|
Table 3-2 in Chapter 3 describes the default mappings between Java classes and SQL datatypes supported by the Oracle JDBC drivers. Compare the contents of the JDBC Datatypes, Standard Java Types and SQL Datatypes columns in Table 3-2 with the contents of Table 18-1 below.
Table 18-1 lists all the possible Java types to which a given SQL datatype can be validly mapped. The Oracle JDBC drivers will support these "non-default" mappings. For example, to materialize SQL CHAR
data in an oracle.sql.CHAR
object use the getCHAR()
method. To materialize it as a java.math.BigDecimal
object, use the getBigDecimal()
method.