public class DataSourceAdapter extends WrapperAdapter implements DataSource
构造器和说明 |
---|
DataSourceAdapter() |
限定符和类型 | 方法和说明 |
---|---|
Connection |
getConnection() |
Connection |
getConnection(String username,
String password) |
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(PrintWriter out) |
isWrapperFor, unwrap
isWrapperFor, unwrap
public PrintWriter getLogWriter() throws SQLException
getLogWriter
在接口中 CommonDataSource
SQLException
public void setLogWriter(PrintWriter out) throws SQLException
setLogWriter
在接口中 CommonDataSource
SQLException
public void setLoginTimeout(int seconds) throws SQLException
setLoginTimeout
在接口中 CommonDataSource
SQLException
public int getLoginTimeout() throws SQLException
getLoginTimeout
在接口中 CommonDataSource
SQLException
public Connection getConnection() throws SQLException
getConnection
在接口中 DataSource
SQLException
public Connection getConnection(String username, String password) throws SQLException
getConnection
在接口中 DataSource
SQLException
public Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger
在接口中 CommonDataSource
SQLFeatureNotSupportedException
Copyright © 2012 Alibaba Group. All Rights Reserved.