Package io.micronaut.jdbc
Interface BasicJdbcConfiguration
- All Known Implementing Classes:
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
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
getUrl()
void
setDataSourceProperties
(Map<String, ?> dsProperties) Sets the datasource properties.void
setDriverClassName
(String driverClassName) void
setPassword
(String password) void
void
setUsername
(String username)
-
Field Details
-
PREFIX
The prefix used for data source configuration.- See Also:
-
-
Method Details
-
getName
String getName()- Returns:
- A user provided name to identify the datasource
-
getConfiguredUrl
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
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
String getConfiguredUsername()- Returns:
- The username supplied via configuration
-
getUsername
String getUsername()- Returns:
- The username to be used by the data source
-
setUsername
- Parameters:
username
- Sets the username- Since:
- 2.1
-
getConfiguredPassword
String getConfiguredPassword()- Returns:
- The password supplied via configuration
-
getPassword
String getPassword()- Returns:
- The password to be used by the data source
-
setPassword
- Parameters:
password
- Sets the password
-
getConfiguredValidationQuery
String getConfiguredValidationQuery()- Returns:
- The validation query supplied via configuration
-
getValidationQuery
String getValidationQuery()- Returns:
- The validation query to be used by the data source
-
setDataSourceProperties
Sets the datasource properties.- Parameters:
dsProperties
- The properties- Since:
- 2.1
-