Package com.ocient.jdbc
Class JDBCDriver
java.lang.Object
com.ocient.jdbc.JDBCDriver
- All Implemented Interfaces:
Driver
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptsURL(String arg0) connect(String arg0, Properties arg1) static voidcopyJDBCLoggingConfig(Logger loggerToUpdate) static voidcopyJDBCLoggingConfig(Logger loggerToUpdate, Optional<Level> levelOverride) Copies the logging configuration from the com.ocient.jdbc logger into theloggerToUpdatecreateConnection(String hostname, int portNum, String database, CaselessProperties properties) intintstatic DriverPropertyInfo[]getPropertyInfo(String arg0, Properties arg1) booleanstatic Properties
-
Constructor Details
-
JDBCDriver
public JDBCDriver()
-
-
Method Details
-
acceptsURL
- Specified by:
acceptsURLin interfaceDriver- Throws:
SQLException
-
copyJDBCLoggingConfig
- Parameters:
loggerToUpdate- the logger to update
-
copyJDBCLoggingConfig
Copies the logging configuration from the com.ocient.jdbc logger into theloggerToUpdate- Parameters:
loggerToUpdate- the logger to updatelevelOverride- when empty the logger will inherit the com.ocient.jdbc log level
-
connect
- Specified by:
connectin interfaceDriver- Throws:
SQLException
-
parseConnectionProperties
- Throws:
SQLException
-
createConnection
public Connection createConnection(String hostname, int portNum, String database, CaselessProperties properties) throws SQLException - Throws:
SQLException
-
getDriverVersion
-
getMajorVersion
public int getMajorVersion()- Specified by:
getMajorVersionin interfaceDriver
-
getMinorVersion
public int getMinorVersion()- Specified by:
getMinorVersionin interfaceDriver
-
getParentLogger
- Specified by:
getParentLoggerin interfaceDriver
-
getPropertyInfo
- Specified by:
getPropertyInfoin interfaceDriver- Throws:
SQLException
-
getPropertyInfo
-
jdbcCompliant
public boolean jdbcCompliant()- Specified by:
jdbcCompliantin interfaceDriver
-