public class SnowflakeBasicDataSource extends Object implements DataSource, Serializable
| Constructor and Description |
|---|
SnowflakeBasicDataSource() |
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection() |
Connection |
getConnection(String username,
String password) |
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
String |
getUrl() |
boolean |
isWrapperFor(Class<?> iface) |
void |
setAccount(String account) |
void |
setAuthenticator(String authenticator) |
void |
setDatabaseName(String databaseName) |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(PrintWriter out) |
void |
setOauthToken(String oauthToken) |
void |
setPassword(String password) |
void |
setPortNumber(int portNumber) |
void |
setPrivateKey(PrivateKey privateKey) |
void |
setPrivateKeyFile(String location,
String password) |
void |
setRole(String role) |
void |
setSchema(String schema) |
void |
setServerName(String serverName) |
void |
setSsl(boolean ssl) |
void |
setTracing(String tracing) |
void |
setUrl(String url) |
void |
setUser(String user) |
void |
setWarehouse(String warehouse) |
<T> T |
unwrap(Class<T> iface) |
public Connection getConnection() throws SQLException
getConnection in interface DataSourceSQLExceptionpublic Connection getConnection(String username, String password) throws SQLException
getConnection in interface DataSourceSQLExceptionpublic PrintWriter getLogWriter() throws SQLException
getLogWriter in interface CommonDataSourceSQLExceptionpublic void setLogWriter(PrintWriter out) throws SQLException
setLogWriter in interface CommonDataSourceSQLExceptionpublic int getLoginTimeout()
throws SQLException
getLoginTimeout in interface CommonDataSourceSQLExceptionpublic void setLoginTimeout(int seconds)
throws SQLException
setLoginTimeout in interface CommonDataSourceSQLExceptionpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface CommonDataSourceSQLFeatureNotSupportedExceptionpublic boolean isWrapperFor(Class<?> iface)
isWrapperFor in interface Wrapperpublic void setUrl(String url)
public void setDatabaseName(String databaseName)
public void setSchema(String schema)
public void setWarehouse(String warehouse)
public void setRole(String role)
public void setUser(String user)
public void setServerName(String serverName)
public void setPassword(String password)
public void setPortNumber(int portNumber)
public void setAccount(String account)
public void setSsl(boolean ssl)
public void setAuthenticator(String authenticator)
public void setOauthToken(String oauthToken)
public String getUrl()
public void setPrivateKey(PrivateKey privateKey)
public void setTracing(String tracing)
Copyright © 2022. All rights reserved.