java.lang.Object | |
↳ | org.springframework.jdbc.datasource.DelegatingDataSource |
Known Direct Subclasses |
Known Indirect Subclasses |
JDBC javax.sql.DataSource implementation that delegates all calls to a given target javax.sql.DataSource.
This class is meant to be subclassed, with subclasses overriding only
those methods (such as getConnection()
) that should not simply
delegate to the target DataSource.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new DelegatingDataSource.
| |||||||||||
Create a new DelegatingDataSource.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Invoked by a BeanFactory after it has set all bean properties supplied
(and satisfied BeanFactoryAware and ApplicationContextAware).
| |||||||||||
Return the target DataSource that this DataSource should delegate to.
| |||||||||||
Set the target DataSource that this DataSource should delegate to.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
java.sql.Wrapper
| |||||||||||
From interface
javax.sql.CommonDataSource
| |||||||||||
From interface
javax.sql.DataSource
| |||||||||||
From interface
org.springframework.beans.factory.InitializingBean
|
Create a new DelegatingDataSource.
Create a new DelegatingDataSource.
targetDataSource | the target DataSource |
---|
Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).
This method allows the bean instance to perform initialization only possible when all bean properties have been set and to throw an exception in the event of misconfiguration.
Return the target DataSource that this DataSource should delegate to.
Set the target DataSource that this DataSource should delegate to.