| Home >> All >> org >> objectstyle >> cayenne >> [ conn Javadoc ] |
org.objectstyle.cayenne.conn: Javadoc index of package org.objectstyle.cayenne.conn.
Package Samples:
org.objectstyle.cayenne.conn
Classes:
ContainerPoolFactory: Basic JNDI object factory that creates an instance of PoolManager that has been configured based on the RefAddr values of the specified Reference . Here is a sample Tomcat 4.0.x configuration that sets this class as a default factory for javax.sql.DataSource objects: <ResourceParams name="jdbc/mydb"> <parameter> <name>factory</name> <value>org.objectstyle.cayenne.conn.ContainerPoolFactory</value> </parameter> <parameter> <name>username</name> <value>andrei</value> </parameter> <parameter> <name>password</name> <value>bla-bla</value> ...
ConnectionWrapper: ConnectionWrapper is a java.sql.Connection implementation that wraps another Connection, delegating method calls to this connection. It works in conjunction with PooledConnectionImpl, to generate pool events, provide limited automated reconnection functionality, etc.
PoolDataSource: PoolDataSource allows to generate pooled connections. It is implemented as a wrapper around a non-pooled data source object. Delegates all method calls except for "getPooledConnection" to the underlying datasource.
PoolManager: PoolManager is a pooling DataSource impementation. Internally to obtain connections PoolManager uses either a JDBC driver or another pooling datasource. TODO: create a low priority thread that will do pool maintenance.
PooledConnectionImpl: PooledConnectionImpl is an implementation of a pooling wrapper for the database connection as per JDBC3 spec. Most of the modern JDBC drivers should have its own implementation that may be used instead of this class.
DataSourceInfo: Helper JavaBean class that holds DataSource login information. For more information see Cayenne User Guide.
DriverDataSource: DriverDataSource is a simple DataSource implementation wrapping a JDBC driver.
ConnectionEventLoggingDelegate: Defines API to log connection events.
| Home | Contact Us | Privacy Policy | Terms of Service |