java.lang.Object | ||
↳ | org.springframework.jdbc.datasource.AbstractDataSource | |
↳ | org.springframework.jdbc.datasource.AbstractDriverBasedDataSource |
Known Direct Subclasses |
Known Indirect Subclasses |
Abstract base class for JDBC javax.sql.DataSource implementations that operate on a JDBC java.sql.Driver.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.jdbc.datasource.AbstractDataSource
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This implementation delegates to
getConnectionFromDriver ,
using the default username and password of this DataSource. | |||||||||||
This implementation delegates to
getConnectionFromDriver ,
using the given username and password. | |||||||||||
Return the connection properties to be passed to the Driver, if any.
| |||||||||||
Return the JDBC password to use for connecting through the Driver.
| |||||||||||
Return the JDBC URL to use for connecting through the Driver.
| |||||||||||
Return the JDBC username to use for connecting through the Driver.
| |||||||||||
Specify arbitrary connection properties as key/value pairs,
to be passed to the Driver.
| |||||||||||
Set the JDBC password to use for connecting through the Driver.
| |||||||||||
Set the JDBC URL to use for connecting through the Driver.
| |||||||||||
Set the JDBC username to use for connecting through the Driver.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Obtain a Connection using the given properties.
| |||||||||||
Build properties for the Driver, including the given username and password (if any),
and obtain a corresponding Connection.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.jdbc.datasource.AbstractDataSource
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.sql.Wrapper
| |||||||||||
From interface
javax.sql.CommonDataSource
| |||||||||||
From interface
javax.sql.DataSource
|
This implementation delegates to getConnectionFromDriver
,
using the default username and password of this DataSource.
SQLException |
---|
This implementation delegates to getConnectionFromDriver
,
using the given username and password.
SQLException |
---|
Return the connection properties to be passed to the Driver, if any.
Specify arbitrary connection properties as key/value pairs, to be passed to the Driver.
Can also contain "user" and "password" properties. However, any "username" and "password" bean properties specified on this DataSource will override the corresponding connection properties.
Set the JDBC password to use for connecting through the Driver.
Set the JDBC username to use for connecting through the Driver.
Obtain a Connection using the given properties.
Template method to be implemented by subclasses.
props | the merged connection properties |
---|
SQLException | in case of failure |
---|
Build properties for the Driver, including the given username and password (if any), and obtain a corresponding Connection.
username | the name of the user |
---|---|
password | the password to use |
SQLException | in case of failure |
---|