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 Details

  • 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

      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
    • setDataSourceProperties

      void setDataSourceProperties(Map<String,?> dsProperties)
      Sets the datasource properties.
      Parameters:
      dsProperties - The properties
      Since:
      2.1