Package io.micronaut.jdbc
Interface BasicJdbcConfiguration
-
- All Known Implementing Classes:
DatasourceConfiguration,DatasourceConfiguration,DatasourceConfiguration,DatasourceConfiguration
public interface BasicJdbcConfigurationA 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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetConfiguredDriverClassName()StringgetConfiguredPassword()StringgetConfiguredUrl()StringgetConfiguredUsername()StringgetConfiguredValidationQuery()StringgetDriverClassName()StringgetName()StringgetPassword()StringgetUrl()StringgetUsername()StringgetValidationQuery()voidsetDataSourceProperties(Map<String,?> dsProperties)Sets the datasource properties.voidsetDriverClassName(String driverClassName)voidsetPassword(String password)voidsetUrl(String url)voidsetUsername(String username)
-
-
-
Field Detail
-
PREFIX
static final String PREFIX
The prefix used for data source configuration.- See Also:
- Constant Field Values
-
-
Method Detail
-
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
void setUrl(String url)
- 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
void setDriverClassName(String driverClassName)
- 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
void setUsername(String username)
- 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
void setPassword(String password)
- 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
-
-