Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.commons.dbcp.cpdsadapter.* (4)org.apache.commons.dbcp.datasources.* (14)

org.apache.commons.dbcp: Javadoc index of package org.apache.commons.dbcp.


Package Samples:

org.apache.commons.dbcp.datasources: Database Connection Pool API.  
org.apache.commons.dbcp.cpdsadapter

Classes:

InstanceKeyDataSource: The base class for SharedPoolDataSource and PerUserPoolDataSource . Many of the configuration properties are shared and defined here. This class is declared public in order to allow particular usage with commons-beanutils; do not make direct use of it outside of commons-dbcp. A J2EE container will normally provide some method of initializing the DataSource whose attributes are presented as bean getters/setters and then deploying it via JNDI. It is then available to an application as a source of pooled logical connections to the database. The pool needs a source of physical connections. This source ...
DriverAdapterCPDS: An adapter for jdbc drivers that do not include an implementation of javax.sql.ConnectionPoolDataSource , but still include a java.sql.DriverManager implementation. ConnectionPoolDataSource s are not used within general applications. They are used by DataSource implementations that pool Connection s, such as org.apache.commons.dbcp.datasources.SharedPoolDataSource . A J2EE container will normally provide some method of initializing the ConnectionPoolDataSource whose attributes are presented as bean getters/setters and then deploying it via JNDI. It is then available as a source of physical connections ...
PoolingConnection: A DelegatingConnection that pools java.sql.PreparedStatement s. My prepareStatement(java.lang.String) 55 methods, rather than creating a new java.sql.PreparedStatement each time, may actually pull the java.sql.PreparedStatement from a pool of unused statements. The Statement.close() > Statement.close() 55 method of the returned java.sql.PreparedStatement doesn't actually close the statement, but rather returns it to my pool. (See PoolablePreparedStatement .)
DelegatingConnection: A base delegating implementation of java.sql.Connection . All of the methods from the java.sql.Connection interface simply check to see that the java.sql.Connection is active, and call the corresponding method on the "delegate" provided in my constructor. Extends AbandonedTrace to implement Connection tracking and logging of code which created the Connection. Tracking the Connection ensures that the AbandonedObjectPool can close this connection and recycle it if its pool of connections is nearing exhaustion and this connection's last usage is older than the removeAbandonedTimeout.
PoolablePreparedStatement: A DelegatingPreparedStatement that cooperates with PoolingConnection to implement a pool of java.sql.PreparedStatement s. My close() 55 method returns me to my containing pool. (See PoolingConnection .)
DelegatingPreparedStatement: A base delegating implementation of java.sql.PreparedStatement . All of the methods from the java.sql.PreparedStatement interface simply check to see that the java.sql.PreparedStatement is active, and call the corresponding method on the "delegate" provided in my constructor. Extends AbandonedTrace to implement Statement tracking and logging of code which created the Statement. Tracking the Statement ensures that the Connection which created it can close any open Statement's on Connection close.
DelegatingStatement: A base delegating implementation of java.sql.Statement . All of the methods from the java.sql.Statement interface simply check to see that the java.sql.Statement is active, and call the corresponding method on the "delegate" provided in my constructor. Extends AbandonedTrace to implement Statement tracking and logging of code which created the Statement. Tracking the Statement ensures that the Connection which created it can close any open Statement's on Connection close.
DelegatingCallableStatement: A base delegating implementation of java.sql.CallableStatement . All of the methods from the java.sql.CallableStatement interface simply call the corresponding method on the "delegate" provided in my constructor. Extends AbandonedTrace to implement Statement tracking and logging of code which created the Statement. Tracking the Statement ensures that the Connection which created it can close any open Statement's on Connection close.
PerUserPoolDataSource: A pooling DataSource appropriate for deployment within J2EE environment. There are many configuration options, most of which are defined in the parent class. This datasource uses individual pools per user, and some properties can be set specifically for a given user, if the deployment environment can support initialization of mapped properties. So for example, a pool of admin or write-access Connections can be guaranteed a certain number of connections, separate from a maximum set for users with read-only connections.
DelegatingResultSet: A base delegating implementation of java.sql.ResultSet . All of the methods from the java.sql.ResultSet interface simply call the corresponding method on the "delegate" provided in my constructor. Extends AbandonedTrace to implement result set tracking and logging of code which created the ResultSet. Tracking the ResultSet ensures that the Statment which created it can close any open ResultSet's on Statement close.
ConnectionImpl: This class is the Connection that will be returned from PooledConnectionImpl.getConnection() . Most methods are wrappers around the jdbc 1.x Connection . A few exceptions include preparedStatement, close and isClosed. In accordance with the jdbc specification this Connection cannot be used after closed() is called. Any further usage will result in an SQLException.
TesterDriver: Mock object implementing the java.sql.Driver interface. Returns TestConnection 's from getConnection methods. Valid username, password combinations are: user password foo bar u1 p1 u2 p2 username password
PoolingDataSource: A simple javax.sql.DataSource implementation that obtains java.sql.Connection s from the specified org.apache.commons.pool.ObjectPool .
BasicDataSourceFactory: JNDI object factory that creates an instance of BasicDataSource that has been configured based on the RefAddr values of the specified Reference , which must match the names and data types of the BasicDataSource bean properties.
TestManual: Tests for a "manually configured", org.apache.commons.pool.impl.GenericObjectPool based PoolingDriver .
BasicDataSource: Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is not the only way to combine the commons-dbcp and commons-pool packages, but provides a "one stop shopping" solution for basic requirements.
PoolingDriver: A java.sql.Driver implementation that obtains java.sql.Connection s from a registered org.apache.commons.pool.ObjectPool .
SharedPoolDataSource: A pooling DataSource appropriate for deployment within J2EE environment. There are many configuration options, most of which are defined in the parent class. All users (based on username) share a single maximum number of Connections in this datasource.
PoolableConnectionFactory: A org.apache.commons.pool.PoolableObjectFactory that creates PoolableConnection s.
PoolablePreparedStatementStub: A org.apache.commons.dbcp.PoolablePreparedStatement stub since activate and passivate are declared protected and we need to be able to call them within this package.
DriverManagerConnectionFactory: A java.sql.DriverManager -based implementation of ConnectionFactory .
DataSourceConnectionFactory: A javax.sql.DataSource -based implementation of ConnectionFactory .
AbandonedObjectPool: An implementation of a Jakarta-Commons ObjectPool which tracks JDBC connections and can recover abandoned db connections. If logAbandoned=true, a stack trace will be printed for any abandoned db connections recovered.
DriverConnectionFactory: A java.sql.Driver -based implementation of ConnectionFactory .
PoolableConnection: A delegating connection that, rather than closing the underlying connection, returns itself to an org.apache.commons.pool.ObjectPool when closed.

Home | Contact Us | Privacy Policy | Terms of Service