public class IoTDBDataSource extends Object implements DataSource
| Constructor and Description |
|---|
IoTDBDataSource() |
IoTDBDataSource(String url,
String user,
String password,
Integer port) |
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection() |
Connection |
getConnection(String username,
String password) |
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
String |
getPassword() |
Integer |
getPort() |
String |
getUrl() |
String |
getUser() |
boolean |
isWrapperFor(Class<?> aClass) |
void |
setLoginTimeout(int i) |
void |
setLogWriter(PrintWriter printWriter) |
void |
setPassword(String password) |
void |
setPort(Integer port) |
void |
setUrl(String url) |
void |
setUser(String user) |
<T> T |
unwrap(Class<T> aClass) |
public String getUser()
public void setUser(String user)
public String getPassword()
public void setPassword(String password)
public Integer getPort()
public void setPort(Integer port)
public String getUrl()
public void setUrl(String url)
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 printWriter) throws SQLException
setLogWriter in interface CommonDataSourceSQLExceptionpublic void setLoginTimeout(int i)
throws SQLException
setLoginTimeout in interface CommonDataSourceSQLExceptionpublic int getLoginTimeout()
throws SQLException
getLoginTimeout in interface CommonDataSourceSQLExceptionpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface CommonDataSourceSQLFeatureNotSupportedExceptionpublic <T> T unwrap(Class<T> aClass) throws SQLException
unwrap in interface WrapperSQLExceptionpublic boolean isWrapperFor(Class<?> aClass) throws SQLException
isWrapperFor in interface WrapperSQLExceptionCopyright © 2020 The Apache Software Foundation. All rights reserved.