문제

If I wanted to implement a JDBC Driver, how would I know which interfaces/abstract classes I would need to implement in order to play successfully? In reading through the source, it looks like there are classes that I would consider both API(e.g. DriverManager) and SPI in the java.sql package.

I've been reading through the documentation but I am yet to find "In order to develop a driver you need to implement Driver, Connection, ResultSet, etc."

FYI - The reason I ask is that I am developing an API that includes a Provider. I'm trying to determine the best way to structure and document my code.

도움이 되었습니까?

해결책

Looks like you should consult a JDBC specification for understanding what's required to build a JDBC driver. Below is link to JDBC 3 specs from JCP community http://jcp.org/en/jsr/detail?id=54

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top