public class WebappAwareDataSource
extends org.apache.commons.dbcp.BasicDataSource
closed, connectionInitSqls, connectionPool, connectionProperties, dataSource, defaultAutoCommit, defaultCatalog, defaultReadOnly, defaultTransactionIsolation, driverClassLoader, driverClassName, initialSize, logWriter, maxActive, maxIdle, maxOpenPreparedStatements, maxWait, minEvictableIdleTimeMillis, minIdle, numTestsPerEvictionRun, password, poolPreparedStatements, testOnBorrow, testOnReturn, testWhileIdle, timeBetweenEvictionRunsMillis, url, username, validationQuery, validationQueryTimeout
Constructor and Description |
---|
WebappAwareDataSource() |
Modifier and Type | Method and Description |
---|---|
Connection |
getConnection() |
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
void |
setContextualizer(Contextualizer ctxt) |
void |
setLoginTimeout(int num) |
void |
setLogWriter(PrintWriter pw) |
void |
setShutdownUrl(String url)
A JDBC connection URL to use on shutting down the database.
|
addConnectionProperty, close, createConnectionFactory, createConnectionPool, createDataSource, createDataSourceInstance, createPoolableConnectionFactory, getConnection, getConnectionInitSqls, getDefaultAutoCommit, getDefaultCatalog, getDefaultReadOnly, getDefaultTransactionIsolation, getDriverClassLoader, getDriverClassName, getInitialSize, getLogAbandoned, getMaxActive, getMaxIdle, getMaxOpenPreparedStatements, getMaxWait, getMinEvictableIdleTimeMillis, getMinIdle, getNumActive, getNumIdle, getNumTestsPerEvictionRun, getPassword, getRemoveAbandoned, getRemoveAbandonedTimeout, getTestOnBorrow, getTestOnReturn, getTestWhileIdle, getTimeBetweenEvictionRunsMillis, getUrl, getUsername, getValidationQuery, getValidationQueryTimeout, isAccessToUnderlyingConnectionAllowed, isClosed, isPoolPreparedStatements, isWrapperFor, log, removeConnectionProperty, setAccessToUnderlyingConnectionAllowed, setConnectionInitSqls, setConnectionProperties, setDefaultAutoCommit, setDefaultCatalog, setDefaultReadOnly, setDefaultTransactionIsolation, setDriverClassLoader, setDriverClassName, setInitialSize, setLogAbandoned, setMaxActive, setMaxIdle, setMaxOpenPreparedStatements, setMaxWait, setMinEvictableIdleTimeMillis, setMinIdle, setNumTestsPerEvictionRun, setPassword, setPoolPreparedStatements, setRemoveAbandoned, setRemoveAbandonedTimeout, setTestOnBorrow, setTestOnReturn, setTestWhileIdle, setTimeBetweenEvictionRunsMillis, setUrl, setUsername, setValidationQuery, setValidationQueryTimeout, unwrap, validateConnectionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParentLogger
public void setContextualizer(Contextualizer ctxt)
public void setShutdownUrl(String url)
url
- public Connection getConnection() throws SQLException
getConnection
in interface DataSource
getConnection
in class org.apache.commons.dbcp.BasicDataSource
SQLException
public void setLogWriter(PrintWriter pw) throws SQLException
setLogWriter
in interface CommonDataSource
setLogWriter
in class org.apache.commons.dbcp.BasicDataSource
SQLException
public void setLoginTimeout(int num) throws SQLException
setLoginTimeout
in interface CommonDataSource
setLoginTimeout
in class org.apache.commons.dbcp.BasicDataSource
SQLException
public PrintWriter getLogWriter() throws SQLException
getLogWriter
in interface CommonDataSource
getLogWriter
in class org.apache.commons.dbcp.BasicDataSource
SQLException
public int getLoginTimeout() throws SQLException
getLoginTimeout
in interface CommonDataSource
getLoginTimeout
in class org.apache.commons.dbcp.BasicDataSource
SQLException
Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.