Java org.springframework.jdbc.datasource SimpleDriverDataSource fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.jdbc.datasource SimpleDriverDataSource fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.jdbc.datasource SimpleDriverDataSource.

The text is from its open source code.

Subclass

org.springframework.jdbc.datasource.SimpleDriverDataSource has subclasses.
Click this link to see all its subclasses.

Constructor

SimpleDriverDataSource(Driver driver, String url, String username, String password)
Create a new DriverManagerDataSource with the given standard Driver parameters.
SimpleDriverDataSource()
Constructor for bean-style configuration.
SimpleDriverDataSource(Driver driver, String url)
Create a new DriverManagerDataSource with the given standard Driver parameters.
SimpleDriverDataSource(Driver driver, String url, Properties conProps)
Create a new DriverManagerDataSource with the given standard Driver parameters.

Method

StringgetUrl()
Return the JDBC URL to use for connecting through the Driver.
StringgetUsername()
Return the JDBC username to use for connecting through the Driver.
voidsetDriver(@Nullable Driver driver)
Specify the JDBC Driver instance to use.
voidsetDriverClass(Class driverClass)
Specify the JDBC Driver implementation class to use.
voidsetPassword(@Nullable String password)
Set the JDBC password to use for connecting through the Driver.
voidsetUrl(@Nullable String url)
Set the JDBC URL to use for connecting through the Driver.
voidsetUsername(@Nullable String username)
Set the JDBC username to use for connecting through the Driver.