Finding concise interface specifications (classes and functions) that a JDBC driver should implement

I am being asked to write a JDBC driver that wraps a third party third party data API.

To understand which interface (classes and functions) my custom JDBC driver should use, I did the following:

  • Trying to find information for JDBC driver developers (not users) from the Oracle JDK documentation , but the documentation does not indicate where the JDBC driver developer specifications are located - it targets JDBC users (as far as I can see)

  • Looked at the / java / sql directory of the jdk1.7.0_09 installation source code. However, from the dozens of source code files in this directory, it is not clear which ones actually represent the required interfaces to be implemented.

  • Found the following JDBC driver example: CsvJdbc and downloaded the source code for this project to use as sample code; however, it is not clear which files implement the required functionality of the JDBC driver and which are specific to that JDBC driver

  • Found the following JDBC driver example: JDBC File Driver and tried to download the source code for this project to use as sample code; however only .class files are available

Is there a concise set of specifications describing the interface (classes and functions) that the minimum and / or recommended JDBC driver should implement?

+3


source to share


1 answer


You need the JDBC specification. It is available on the JCP site as JSR221 . Follow the link and click on the paragraph "If you are going to build an implementation of the specification ...". It will take you to the developer download page.



+4


source







All Articles