I’m looking for a link to a table with the mappings between SQL types (java.sql.Types) to Java types.
Do you know where I can find one ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The JDBC 4.x Specification, provided by JSR 221, provides this info in appendix B titled Data Type Conversion Tables.
See tables containing mappings from Java object types to JDBC types. Different tables exist for the mappings that will be performed when different methods of the JDBC API are invoked; for instance, a separate mapping exists for
CallableStatement.getObjectandResultSet.getObjectwhile another exists for the mappings used duringResultSet.getXXXmethods.Click through that JSR 221 page to download a PDF of the spec document, currently JDBC 4.3.