Package com.clickhouse.jdbc
Class ClickHouseDataSource
java.lang.Object
com.clickhouse.jdbc.JdbcWrapper
com.clickhouse.jdbc.ClickHouseDataSource
- All Implemented Interfaces:
Wrapper,CommonDataSource,DataSource
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ClickHouseJdbcUrlParser.ConnectionInfoprotected final ClickHouseDriverprotected intprotected PrintWriter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConnection(String username, String password) intvoidsetLoginTimeout(int seconds) voidsetLogWriter(PrintWriter out) Methods inherited from class com.clickhouse.jdbc.JdbcWrapper
isWrapperFor, unwrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilderMethods inherited from interface javax.sql.DataSource
createConnectionBuilderMethods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
-
Field Details
-
driver
-
connInfo
-
printWriter
-
loginTimeoutSeconds
protected int loginTimeoutSeconds
-
-
Constructor Details
-
ClickHouseDataSource
- Throws:
SQLException
-
ClickHouseDataSource
- Throws:
SQLException
-
-
Method Details
-
getConnection
- Specified by:
getConnectionin interfaceDataSource- Throws:
SQLException
-
getConnection
- Specified by:
getConnectionin interfaceDataSource- Throws:
SQLException
-
getLogWriter
- Specified by:
getLogWriterin interfaceCommonDataSource- Specified by:
getLogWriterin interfaceDataSource- Throws:
SQLException
-
setLogWriter
- Specified by:
setLogWriterin interfaceCommonDataSource- Specified by:
setLogWriterin interfaceDataSource- Throws:
SQLException
-
setLoginTimeout
- Specified by:
setLoginTimeoutin interfaceCommonDataSource- Specified by:
setLoginTimeoutin interfaceDataSource- Throws:
SQLException
-
getLoginTimeout
- Specified by:
getLoginTimeoutin interfaceCommonDataSource- Specified by:
getLoginTimeoutin interfaceDataSource- Throws:
SQLException
-
getParentLogger
- Specified by:
getParentLoggerin interfaceCommonDataSource- Throws:
SQLFeatureNotSupportedException
-