Top Description Methods
org.springframework.jdbc.datasource.embedded

public Interface ConnectionProperties

Imports
java.sql.Driver

ConnectionProperties serves as a simple data container that allows essential JDBC connection properties to be configured consistently, independent of the actual DataSource implementation.
Authors
Keith Donald, Sam Brannen
Since
3.0
See Also
DataSourceFactory

Method Summary

Modifier and TypeMethod and Description
public void
setDriverClass(Class<? extends Driver>
the jdbc driver class
driverClass
)

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

public void
setPassword(String
the password
password
)

Set the password to use to connect to the database.

public void
setUrl(String
the connection url
url
)

Set the JDBC connection URL for the database.

public void
setUsername(String
the username
username
)

Set the username to use to connect to the database.

Method Detail

setDriverClassback to summary
public void setDriverClass(Class<? extends Driver> driverClass)

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

Parameters
driverClass:Class<? extends Driver>

the jdbc driver class

setPasswordback to summary
public void setPassword(String password)

Set the password to use to connect to the database.

Parameters
password:String

the password

setUrlback to summary
public void setUrl(String url)

Set the JDBC connection URL for the database.

Parameters
url:String

the connection url

setUsernameback to summary
public void setUsername(String username)

Set the username to use to connect to the database.

Parameters
username:String

the username