spring-framework / org.springframework.jdbc.datasource / DriverManagerDataSource / <init>

<init>

DriverManagerDataSource()

Constructor for bean-style configuration.

DriverManagerDataSource(url: String)

Create a new DriverManagerDataSource with the given JDBC URL, not specifying a username or password for JDBC access.

Parameters

url - the JDBC URL to use for accessing the DriverManager

See Also
java.sql.DriverManager#getConnection(String)

DriverManagerDataSource(url: String, username: String, password: String)

Create a new DriverManagerDataSource with the given standard DriverManager parameters.

Parameters

url - the JDBC URL to use for accessing the DriverManager

username - the JDBC username to use for accessing the DriverManager

password - the JDBC password to use for accessing the DriverManager

See Also
java.sql.DriverManager#getConnection(String, String, String)

DriverManagerDataSource(url: String, conProps: Properties)

Create a new DriverManagerDataSource with the given JDBC URL, not specifying a username or password for JDBC access.

Parameters

url - the JDBC URL to use for accessing the DriverManager

conProps - JDBC connection properties

See Also
java.sql.DriverManager#getConnection(String)