类的使用
org.springframework.jdbc.datasource.DelegatingDataSource
使用DelegatingDataSource的程序包 程序包 说明 org.springframework.jdbc.datasource Provides a utility class for easy DataSource access, a PlatformTransactionManager for a single DataSource, and various simple DataSource implementations.org.springframework.jdbc.datasource中DelegatingDataSource的使用
org.springframework.jdbc.datasource中DelegatingDataSource的子类 修饰符和类型 类 说明 class
IsolationLevelDataSourceAdapter
An adapter for a targetDataSource
, applying the current Spring transaction's isolation level (and potentially specified user credentials) to everygetConnection
call.class
LazyConnectionDataSourceProxy
Proxy for a target DataSource, fetching actual JDBC Connections lazily, i.e. not until first creation of a Statement.class
TransactionAwareDataSourceProxy
Proxy for a target JDBCDataSource
, adding awareness of Spring-managed transactions.class
UserCredentialsDataSourceAdapter
An adapter for a target JDBCDataSource
, applying the specified user credentials to every standardgetConnection()
call, implicitly invokinggetConnection(username, password)
on the target.class
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.