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

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

Introduction

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

The text is from its open source code.

Subclass

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

Constructor

DriverManagerDataSource()
Constructor for bean-style configuration.
DriverManagerDataSource(String url, String username, String password)
Create a new DriverManagerDataSource with the given standard DriverManager parameters.
DriverManagerDataSource(String url)
Create a new DriverManagerDataSource with the given JDBC URL, not specifying a username or password for JDBC access.

Method

ConnectiongetConnection()
This implementation delegates to getConnectionFromDriver , using the default username and password of this DataSource.
StringgetUrl()
Return the JDBC URL to use for connecting through the Driver.
StringgetUsername()
Return the JDBC username to use for connecting through the Driver.
voidsetConnectionProperties(@Nullable Properties connectionProperties)
Specify arbitrary connection properties as key/value pairs, to be passed to the Driver.
voidsetDriverClassName(String driverClassName)
Set the JDBC driver class name.
voidsetPassword(@Nullable String password)
Set the JDBC password to use for connecting through the Driver.
voidsetSchema(@Nullable String schema)
Specify a database schema to be applied to each Connection.
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.
StringtoString()
Returns a string representation of the object.