public class DriverManagerConnectionPoolDataSource extends Object implements ConnectionPoolDataSource
| Constructor and Description |
|---|
DriverManagerConnectionPoolDataSource(DriverManagerDataSource dataSource) |
DriverManagerConnectionPoolDataSource(int maxStatements,
DriverManagerDataSource dataSource) |
DriverManagerConnectionPoolDataSource(String driverClassName,
String jdbcUrl,
String user,
String password) |
DriverManagerConnectionPoolDataSource(String driverClassName,
String jdbcUrl,
String user,
String password,
int maxStatements) |
| Modifier and Type | Method and Description |
|---|---|
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
PooledConnection |
getPooledConnection() |
PooledConnection |
getPooledConnection(String user,
String password) |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(PrintWriter out) |
public DriverManagerConnectionPoolDataSource(String driverClassName, String jdbcUrl, String user, String password) throws SQLException
SQLExceptionpublic DriverManagerConnectionPoolDataSource(String driverClassName, String jdbcUrl, String user, String password, int maxStatements) throws SQLException
SQLExceptionpublic DriverManagerConnectionPoolDataSource(DriverManagerDataSource dataSource)
public DriverManagerConnectionPoolDataSource(int maxStatements,
DriverManagerDataSource dataSource)
public PooledConnection getPooledConnection() throws SQLException
getPooledConnection in interface ConnectionPoolDataSourceSQLExceptionpublic PooledConnection getPooledConnection(String user, String password) throws SQLException
getPooledConnection in interface ConnectionPoolDataSourceSQLExceptionpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface CommonDataSourceSQLFeatureNotSupportedExceptionpublic PrintWriter getLogWriter() throws SQLException
getLogWriter in interface CommonDataSourceSQLExceptionpublic void setLogWriter(PrintWriter out) throws SQLException
setLogWriter in interface CommonDataSourceSQLExceptionpublic void setLoginTimeout(int seconds)
throws SQLException
setLoginTimeout in interface CommonDataSourceSQLExceptionpublic int getLoginTimeout()
throws SQLException
getLoginTimeout in interface CommonDataSourceSQLExceptionCopyright © 2013. All Rights Reserved.