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

<init>

SimpleDriverDataSource()

Constructor for bean-style configuration.

SimpleDriverDataSource(driver: Driver, url: String)

Create a new DriverManagerDataSource with the given standard Driver parameters.

Parameters

driver - the JDBC Driver object

url - the JDBC URL to use for accessing the DriverManager

See Also
java.sql.Driver#connect(String, java.util.Properties)

SimpleDriverDataSource(driver: Driver, url: String, username: String, password: String)

Create a new DriverManagerDataSource with the given standard Driver parameters.

Parameters

driver - the JDBC Driver object

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.Driver#connect(String, java.util.Properties)

SimpleDriverDataSource(driver: Driver, url: String, conProps: Properties)

Create a new DriverManagerDataSource with the given standard Driver parameters.

Parameters

driver - the JDBC Driver object

url - the JDBC URL to use for accessing the DriverManager

conProps - JDBC connection properties

See Also
java.sql.Driver#connect(String, java.util.Properties)