public class PooledDataSource extends Object implements DataSource, Serializable
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected ConnectionPool |
connectionPool |
| コンストラクタと説明 |
|---|
PooledDataSource(ConnectionPool connectionPool) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
Connection |
getConnection() |
Connection |
getConnection(String user,
String password) |
ConnectionPool |
getConnectionPool() |
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
boolean |
isWrapperFor(Class<?> iface) |
void |
setLoginTimeout(int loginTimeout) |
void |
setLogWriter(PrintWriter logWriter) |
<T> T |
unwrap(Class<T> iface) |
protected final ConnectionPool connectionPool
public PooledDataSource(ConnectionPool connectionPool)
public Connection getConnection() throws SQLException
getConnection インタフェース内 DataSourceSQLExceptionpublic Connection getConnection(String user, String password) throws SQLException
getConnection インタフェース内 DataSourceSQLExceptionpublic void setLoginTimeout(int loginTimeout)
throws SQLException
setLoginTimeout インタフェース内 CommonDataSourceSQLExceptionpublic int getLoginTimeout()
throws SQLException
getLoginTimeout インタフェース内 CommonDataSourceSQLExceptionpublic void setLogWriter(PrintWriter logWriter) throws SQLException
setLogWriter インタフェース内 CommonDataSourceSQLExceptionpublic PrintWriter getLogWriter() throws SQLException
getLogWriter インタフェース内 CommonDataSourceSQLExceptionpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger インタフェース内 CommonDataSourceSQLFeatureNotSupportedExceptionpublic <T> T unwrap(Class<T> iface) throws SQLException
unwrap インタフェース内 WrapperSQLExceptionpublic boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor インタフェース内 WrapperSQLExceptionpublic ConnectionPool getConnectionPool()
Copyright © 2015–2019 The DBFlute Project. All rights reserved.