Package org.springframework.jdbc.datasource
@NonNullApi
@NonNullFields
package org.springframework.jdbc.datasource
Provides a utility class for easy DataSource access,
a PlatformTransactionManager for a single DataSource,
and various simple DataSource implementations.
-
ClassDescriptionAbstract base class for Spring's
DataSourceimplementations, taking care of the padding.Abstract base class for JDBCDataSourceimplementations that operate on a JDBCDriver.Simple interface to be implemented by handles for a JDBC Connection.Resource holder wrapping a JDBCConnection.Subinterface ofConnectionto be implemented by Connection proxies.PlatformTransactionManagerimplementation for a single JDBCDataSource.Helper class that provides static methods for obtaining JDBCConnections from aDataSource.JDBCDataSourceimplementation that delegates all calls to a given targetDataSource.Simple implementation of the standard JDBCDataSourceinterface, configuring the plain old JDBCDriverManagervia bean properties, and returning a newConnectionfrom everygetConnectioncall.An adapter for a targetDataSource, applying the current Spring transaction's isolation level (and potentially specified user credentials) to everygetConnectioncall.Convenient base class for JDBC-aware transaction objects.Proxy for a target DataSource, fetching actual JDBC Connections lazily, i.e.Simple implementation of theConnectionHandleinterface, containing a given JDBC Connection.Simple implementation of the standard JDBCDataSourceinterface, configuring a plain old JDBCDrivervia bean properties, and returning a newConnectionfrom everygetConnectioncall.Implementation ofSmartDataSourcethat wraps a single JDBC Connection which is not closed after use.Extension of thejavax.sql.DataSourceinterface, to be implemented by special DataSources that return JDBC Connections in an unwrapped fashion.Proxy for a target JDBCDataSource, adding awareness of Spring-managed transactions.An adapter for a target JDBCDataSource, applying the specified user credentials to every standardgetConnection()call, implicitly invokinggetConnection(username, password)on the target.