Package com.ocient.jdbc
Class JDBCDriver
java.lang.Object
com.ocient.jdbc.JDBCDriver
- All Implemented Interfaces:
Driver
public class JDBCDriver extends Object implements Driver
-
Constructor Summary
Constructors Constructor Description JDBCDriver() -
Method Summary
Modifier and Type Method Description booleanacceptsURL(String arg0)Connectionconnect(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 theloggerToUpdateConnectioncreateConnection(String hostname, int portNum, String database, CaselessProperties properties)StringgetDriverVersion()intgetMajorVersion()intgetMinorVersion()LoggergetParentLogger()static DriverPropertyInfo[]getPropertyInfo()DriverPropertyInfo[]getPropertyInfo(String arg0, Properties arg1)booleanjdbcCompliant()static PropertiesparseConnectionProperties(String text)
-
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
-