java.lang.Objectorg.springframework.jdbc.datasource.DelegatingDataSource
org.springframework.jdbc.datasource.UserCredentialsDataSourceAdapter
org.springframework.jdbc.datasource.IsolationLevelDataSourceAdapter
All Implemented Interfaces:
DataSource, InitializingBean
Direct Known Subclasses:
WebSphereDataSourceAdapter
getConnection call. Also applies the read-only flag,
if specified.
Can be used to proxy a target JNDI DataSource that does not have the desired isolation level (and user credentials) configured. Client code can work with this DataSource as usual, not worrying about such settings.
Inherits the capability to apply specific user credentials from its superclass UserCredentialsDataSourceAdapter ; see the latter's javadoc for details on that functionality (e.g. #setCredentialsForCurrentThread ).
WARNING: This adapter simply calls java.sql.Connection#setTransactionIsolation and/or java.sql.Connection#setReadOnly for every Connection obtained from it. It does, however, not reset those settings; it rather expects the target DataSource to perform such resetting as part of its connection pool handling. Make sure that the target DataSource properly cleans up such transaction state.
Juergen - Hoeller2.0.3 - | Method from org.springframework.jdbc.datasource.IsolationLevelDataSourceAdapter Summary: |
|---|
| doGetConnection, getCurrentIsolationLevel, getCurrentReadOnlyFlag, getIsolationLevel, setIsolationLevel, setIsolationLevelName |
| Methods from org.springframework.jdbc.datasource.UserCredentialsDataSourceAdapter: |
|---|
| doGetConnection, getConnection, getConnection, removeCredentialsFromCurrentThread, setCredentialsForCurrentThread, setPassword, setUsername |
| Methods from org.springframework.jdbc.datasource.DelegatingDataSource: |
|---|
| afterPropertiesSet, getConnection, getConnection, getLogWriter, getLoginTimeout, getTargetDataSource, isWrapperFor, setLogWriter, setLoginTimeout, setTargetDataSource, unwrap |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.springframework.jdbc.datasource.IsolationLevelDataSourceAdapter Detail: |
|---|
|
|
|
null if none. |
If not specified, the target DataSource's default will be used. Note that a transaction-specific isolation value will always override any isolation setting specified at the DataSource level. |
If not specified, the target DataSource's default will be used. Note that a transaction-specific isolation value will always override any isolation setting specified at the DataSource level. |