Package org.springframework.jdbc.datasource
Provides a utility class for easy DataSource access, a PlatformTransactionManager for a single DataSource, and various simple DataSource implementations.
Interface Summary Interface Description ConnectionHandle Simple interface to be implemented by handles for a JDBC Connection.ConnectionProxy Subinterface ofConnection
to be implemented by Connection proxies.SmartDataSource Extension of thejavax.sql.DataSource
interface, to be implemented by special DataSources that return JDBC Connections in an unwrapped fashion.Class Summary Class Description AbstractDataSource Abstract base class for Spring'sDataSource
implementations, taking care of the padding.AbstractDriverBasedDataSource Abstract base class for JDBCDataSource
implementations that operate on a JDBCDriver
.ConnectionHolder Resource holder wrapping a JDBCConnection
.DataSourceTransactionManager PlatformTransactionManager
implementation for a single JDBCDataSource
.DataSourceUtils Helper class that provides static methods for obtaining JDBC Connections from aDataSource
.DelegatingDataSource JDBCDataSource
implementation that delegates all calls to a given targetDataSource
.DriverManagerDataSource Simple implementation of the standard JDBCDataSource
interface, configuring the plain old JDBCDriverManager
via bean properties, and returning a newConnection
from everygetConnection
call.IsolationLevelDataSourceAdapter An adapter for a targetDataSource
, applying the current Spring transaction's isolation level (and potentially specified user credentials) to everygetConnection
call.JdbcTransactionObjectSupport Convenient base class for JDBC-aware transaction objects.LazyConnectionDataSourceProxy Proxy for a target DataSource, fetching actual JDBC Connections lazily, i.e.SimpleConnectionHandle Simple implementation of theConnectionHandle
interface, containing a given JDBC Connection.SimpleDriverDataSource Simple implementation of the standard JDBCDataSource
interface, configuring a plain old JDBCDriver
via bean properties, and returning a newConnection
from everygetConnection
call.SingleConnectionDataSource Implementation ofSmartDataSource
that wraps a single JDBC Connection which is not closed after use.TransactionAwareDataSourceProxy Proxy for a target JDBCDataSource
, adding awareness of Spring-managed transactions.UserCredentialsDataSourceAdapter An adapter for a target JDBCDataSource
, applying the specified user credentials to every standardgetConnection()
call, implicitly invokinggetConnection(username, password)
on the target.WebSphereDataSourceAdapter DataSource
implementation that delegates all calls to a WebSphere targetDataSource
, typically obtained from JNDI, applying a current isolation level and/or current user credentials to every Connection obtained from it.