-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Oracle Driver Internal API
wenshao edited this page Aug 17, 2012
·
1 revision
以下是Oracle内部API的介绍
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 10.2.0.x版本之前,Oracle Driver返回的MajorVersion和MinorVersion都是不规范的,返回的值分别是1和0。
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;
}