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 |
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 DataSource
SQLException
public Connection getConnection(String username, String password) throws SQLException
getConnection
in interface DataSource
SQLException
public PrintWriter getLogWriter() throws SQLException
getLogWriter
in interface CommonDataSource
SQLException
public void setLogWriter(PrintWriter out) throws SQLException
setLogWriter
in interface CommonDataSource
SQLException
public int getLoginTimeout() throws SQLException
getLoginTimeout
in interface CommonDataSource
SQLException
public void setLoginTimeout(int seconds) throws SQLException
setLoginTimeout
in interface CommonDataSource
SQLException
public Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger
in interface CommonDataSource
SQLFeatureNotSupportedException
public boolean isWrapperFor(Class<?> iface)
isWrapperFor
in interface Wrapper
public 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)
Copyright © 2020. All rights reserved.