Class DataSource
java.lang.Object
com.databricks.client.jdbc.DataSource
- All Implemented Interfaces:
Wrapper,CommonDataSource,ConnectionPoolDataSource,DataSource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConnection(String username, String password) getHost()intgetPooledConnection(String user, String password) intgetPort()getUrl()booleanisWrapperFor(Class<?> iface) voidvoidsetHttpPath(String httpPath) voidsetLoginTimeout(int seconds) voidsetLogWriter(PrintWriter out) voidsetPassword(String password) voidsetPort(int port) voidsetProperties(Properties properties) voidsetUsername(String user) <T> TMethods 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.ConnectionPoolDataSource
createPooledConnectionBuilderMethods inherited from interface javax.sql.DataSource
createConnectionBuilder
-
Constructor Details
-
DataSource
public DataSource() -
DataSource
-
-
Method Details
-
getConnection
- Specified by:
getConnectionin interfaceDataSource- Throws:
DatabricksSQLException
-
getConnection
- Specified by:
getConnectionin interfaceDataSource- Throws:
DatabricksSQLException
-
getPooledConnection
- Specified by:
getPooledConnectionin interfaceConnectionPoolDataSource- Throws:
DatabricksSQLException
-
getPooledConnection
public PooledConnection getPooledConnection(String user, String password) throws DatabricksSQLException - Specified by:
getPooledConnectionin interfaceConnectionPoolDataSource- Throws:
DatabricksSQLException
-
getLogWriter
- Specified by:
getLogWriterin interfaceCommonDataSource- Specified by:
getLogWriterin interfaceConnectionPoolDataSource- Specified by:
getLogWriterin interfaceDataSource- Throws:
SQLException
-
setLogWriter
- Specified by:
setLogWriterin interfaceCommonDataSource- Specified by:
setLogWriterin interfaceConnectionPoolDataSource- Specified by:
setLogWriterin interfaceDataSource- Throws:
SQLException
-
setLoginTimeout
public void setLoginTimeout(int seconds) - Specified by:
setLoginTimeoutin interfaceCommonDataSource- Specified by:
setLoginTimeoutin interfaceConnectionPoolDataSource- Specified by:
setLoginTimeoutin interfaceDataSource
-
getLoginTimeout
public int getLoginTimeout()- Specified by:
getLoginTimeoutin interfaceCommonDataSource- Specified by:
getLoginTimeoutin interfaceConnectionPoolDataSource- Specified by:
getLoginTimeoutin interfaceDataSource
-
getParentLogger
- Specified by:
getParentLoggerin interfaceCommonDataSource- Throws:
SQLFeatureNotSupportedException
-
unwrap
- Specified by:
unwrapin interfaceWrapper- Throws:
SQLException
-
isWrapperFor
- Specified by:
isWrapperForin interfaceWrapper- Throws:
SQLException
-
getUrl
-
getUsername
-
setUsername
-
getPassword
-
setPassword
-
getHost
-
setHost
-
getPort
public int getPort() -
setPort
public void setPort(int port) -
getHttpPath
-
setHttpPath
-
getProperties
-
setProperties
-