Class AbstractDriverBasedDataSource
java.lang.Object
org.springframework.jdbc.datasource.AbstractDataSource
org.springframework.jdbc.datasource.AbstractDriverBasedDataSource
- All Implemented Interfaces:
Wrapper,CommonDataSource,DataSource
- Direct Known Subclasses:
DriverManagerDataSource,SimpleDriverDataSource
Abstract base class for JDBC
DataSource implementations
that operate on a JDBC Driver.- Since:
- 2.5.5
- Author:
- Juergen Hoeller
- See Also:
-
Field Summary
Fields inherited from class org.springframework.jdbc.datasource.AbstractDataSource
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the database catalog to be applied to each Connection, if any.This implementation delegates togetConnectionFromDriver, using the default username and password of this DataSource.getConnection(String username, String password) This implementation delegates togetConnectionFromDriver, using the given username and password.protected ConnectiongetConnectionFromDriver(String username,