public class IoTDBDataSource extends Object implements DataSource
| 构造器和说明 |
|---|
IoTDBDataSource() |
IoTDBDataSource(String url,
String user,
String password,
Integer port) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 DataSourceSQLExceptionpublic Connection getConnection(String username, String password) throws SQLException
getConnection 在接口中 DataSourceSQLExceptionpublic PrintWriter getLogWriter() throws SQLException
getLogWriter 在接口中 CommonDataSourceSQLExceptionpublic void setLogWriter(PrintWriter printWriter) throws SQLException
setLogWriter 在接口中 CommonDataSourceSQLExceptionpublic void setLoginTimeout(int i)
throws SQLException
setLoginTimeout 在接口中 CommonDataSourceSQLExceptionpublic int getLoginTimeout()
throws SQLException
getLoginTimeout 在接口中 CommonDataSourceSQLExceptionpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger 在接口中 CommonDataSourceSQLFeatureNotSupportedExceptionpublic <T> T unwrap(Class<T> aClass) throws SQLException
unwrap 在接口中 WrapperSQLExceptionpublic boolean isWrapperFor(Class<?> aClass) throws SQLException
isWrapperFor 在接口中 WrapperSQLExceptionCopyright © 2020 The Apache Software Foundation. All rights reserved.