Interface BasicJdbcConfiguration
- All Known Implementing Classes:
DatasourceConfiguration, DatasourceConfiguration, DatasourceConfiguration, DatasourceConfiguration, DatasourceConfiguration
public interface BasicJdbcConfiguration
A contract for data source configuration classes to implement that allows for the calculation of several
properties based on other properties.
- Since:
- 1.0
- Author:
- James Kleeh, graemerocher
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription@Nullable String@Nullable String@Nullable String@Nullable String@Nullable String@Nullable StringgetName()@Nullable StringgetUrl()@Nullable String@Nullable StringvoidsetDataSourceProperties(Map<String, ?> dsProperties) Sets the datasource properties.voidsetDriverClassName(String driverClassName) voidsetPassword(@Nullable String password) voidvoidsetUsername(@Nullable String username)
-
Field Details
-
PREFIX
-
-
Method Details
-
getName
@Nullable String getName()- Returns:
- A user provided name to identify the datasource
-
getConfiguredUrl
@Nullable String getConfiguredUrl()- Returns:
- The URL supplied via configuration
-
getUrl
String getUrl()- Returns:
- The URL to be used by the data source
-
setUrl
- Parameters:
url- Sets the url- Since:
- 2.1
-
getConfiguredDriverClassName
@Nullable String getConfiguredDriverClassName()- Returns:
- The driver class name supplied via configuration
-
getDriverClassName
String getDriverClassName()- Returns:
- The driver class name to be used by the data source
-
setDriverClassName
- Parameters:
driverClassName- Sets the driver class name- Since:
- 2.1
-
getConfiguredUsername
@Nullable String getConfiguredUsername()- Returns:
- The username supplied via configuration
-
getUsername
@Nullable String getUsername()- Returns:
- The username to be used by the data source
-
setUsername
- Parameters:
username- Sets the username- Since:
- 2.1
-
getConfiguredPassword
@Nullable String getConfiguredPassword()- Returns:
- The password supplied via configuration
-
getPassword
@Nullable String getPassword()- Returns:
- The password to be used by the data source
-
setPassword
- Parameters:
password- Sets the password
-
getConfiguredValidationQuery
@Nullable String getConfiguredValidationQuery()- Returns:
- The validation query supplied via configuration
-
getValidationQuery
@Nullable String getValidationQuery()- Returns:
- The validation query to be used by the data source
-
setDataSourceProperties
-