程序包 org.springframework.jdbc.datasource
Provides a utility class for easy DataSource access, a PlatformTransactionManager for a single DataSource, and various simple DataSource implementations.
接口概要 接口 说明 ConnectionHandle Simple interface to be implemented by handles for a JDBC Connection.ConnectionProxy Subinterface ofConnectionto be implemented by Connection proxies.SmartDataSource Extension of thejavax.sql.DataSourceinterface, to be implemented by special DataSources that return JDBC Connections in an unwrapped fashion.类概要 类 说明 AbstractDataSource Abstract base class for Spring'sDataSourceimplementations, taking care of the padding.AbstractDriverBasedDataSource Abstract base class for JDBCDataSourceimplementations that operate on a JDBCDriver.ConnectionHolder Connection holder, wrapping a JDBC Connection.DataSourceTransactionManager PlatformTransactionManagerimplementation for a single JDBCDataSource.DataSourceUtils Helper class that provides static methods for obtaining JDBC Connections from aDataSource.DelegatingDataSource JDBCDataSourceimplementation that delegates all calls to a given targetDataSource.DriverManagerDataSource Simple implementation of the standard JDBCDataSourceinterface, configuring the plain old JDBCDriverManagervia bean properties, and returning a newConnectionfrom everygetConnectioncall.IsolationLevelDataSourceAdapter An adapter for a targetDataSource, applying the current Spring transaction's isolation level (and potentially specified user credentials) to everygetConnectioncall.JdbcTransactionObjectSupport Convenient base class for JDBC-aware transaction objects.LazyConnectionDataSourceProxy Proxy for a target DataSource, fetching actual JDBC Connections lazily, i.e. not until first creation of a Statement.SimpleConnectionHandle Simple implementation of theConnectionHandleinterface, containing a given JDBC Connection.SimpleDriverDataSource Simple implementation of the standard JDBCDataSourceinterface, configuring a plain old JDBCDrivervia bean properties, and returning a newConnectionfrom everygetConnectioncall.SingleConnectionDataSource Implementation ofSmartDataSourcethat 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 DataSourceimplementation 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.