public interface ConnectionProperties
ConnectionProperties serves as a simple data container that allows
essential JDBC connection properties to be configured consistently,
independent of the actual DataSource
implementation.DataSourceFactory| Modifier and Type | Method and Description |
|---|---|
void |
setDriverClass(Class<? extends Driver> driverClass)
Set the JDBC driver class to use to connect to the database.
|
void |
setPassword(String password)
Set the password to use to connect to the database.
|
void |
setUrl(String url)
Set the JDBC connection URL for the database.
|
void |
setUsername(String username)
Set the username to use to connect to the database.
|
void setDriverClass(Class<? extends Driver> driverClass)
driverClass - the jdbc driver classvoid setUrl(String url)
url - the connection urlvoid setUsername(String username)
username - the usernamevoid setPassword(String password)
password - the password