A.3. Java Wrapper Class Mappings
Java wrapper classes allow you to store database NULL values, whereas the Java primitive types (such as int and float) do not. The Java wrapper classes are useful when you are retrieving a database column value that may be NULL. Table A-3 lists the mappings between the Java wrapper classes and the compatible Oracle types.
Java type | Oracle type |
---|---|
java.lang.Boolean | NUMBER |
java.lang.Byte | NUMBER |
java.lang.Short | NUMBER |
java.lang.Integer | NUMBER |
java.lang.Long | NUMBER |
java.lang.Float | NUMBER |
java.lang.Double | NUMBER |
Get Java Programming with Oracle SQLJ now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.