以下是Oracle内部API的介绍
Oracle Driver
package oracle.jdbc;public class OracleDriver {int getMajorVersion();int getMinorVersion();}
驱动选择
Oracle Driver的驱动分四种:
| 驱动 | 版本范围 | for JDK版本 |
|---|---|---|
| class12 | 8.1.x,9.0.x,9.2.0.x,10.1.0.x,10.2.0.x | for use with JDK 1.2 and JDK 1.3 |
| ojdbc14 | 9.2.0.x,10.1.0.x,10.2.0.x | use with JDK 1.4 and 1.5 |
| ojdbc5 | 11.1.0.x,11.2.0.x | for use with JDK 1.5 |
| ojdbc6 | 11.1.0.x,11.2.0.x | for use with JDK 1.6 |
根据Oracle服务器版本和JDK版本选择相应的Oracle Driver。
版本信息
在Oracle 10.2.0.x版本之前,Oracle Driver返回的MajorVersion和MinorVersion都是不规范的,返回的值分别是1和0。
Internal OraclePreparedStatement
package oracle.jdbc.internal;public interface OraclePreparedStatement {/*** @since 10.1.0.x*/void enterExplicitCache() throws java.sql.SQLException;void enterImplicitCache() throws java.sql.SQLException;void exitExplicitCacheToActive() throws java.sql.SQLException;void exitExplicitCacheToClose() throws java.sql.SQLException;void exitImplicitCacheToActive() throws java.sql.SQLException;void exitImplicitCacheToClose() throws java.sql.SQLException;void setCheckBindTypes(boolean arg0);void setInternalBytes(int arg0, byte[] arg1, int arg2) throws java.sql.SQLException;/*** @since 11.2.0.1.0*/String getOriginalSql() throws java.sql.SQLException;}