public interface

ConnectionProperties

org.springframework.jdbc.datasource.embedded.ConnectionProperties

Class Overview

DataSourceFactory helper that allows essential JDBC connection properties to be configured consistently, independent of the actual DataSource implementation.

Summary

Public Methods
abstract void setDriverClass(Class<? extends Driver> driverClass)
Set the JDBC driver to use to connect to the database.
abstract void setPassword(String password)
Sets the password to use to connect to the database.
abstract void setUrl(String url)
Sets the JDBC connection URL of the database.
abstract void setUsername(String username)
Sets the username to use to connect to the database.

Public Methods

public abstract void setDriverClass (Class<? extends Driver> driverClass)

Set the JDBC driver to use to connect to the database.

Parameters
driverClass the jdbc driver class

public abstract void setPassword (String password)

Sets the password to use to connect to the database.

Parameters
password the password

public abstract void setUrl (String url)

Sets the JDBC connection URL of the database.

Parameters
url the connection url

public abstract void setUsername (String username)

Sets the username to use to connect to the database.

Parameters
username the username