Interface ISqlDbConfig

All Superinterfaces:
io.ran.DbType
All Known Implementing Classes:
SqlDbPropertiesConfig

public interface ISqlDbConfig extends io.ran.DbType
Represents configuration for connecting to custom data-source.

Whenever null is returned by any of the getters, the corresponding SAGA sql connection value is used instead.

For reading configuration from the property file, please refer to SqlDbPropertiesConfig

  • Method Details

    • getUsername

      default String getUsername()
      Returns:
      return username for the SQL database
    • getPassword

      default String getPassword()
      Returns:
      return password for the provided username
    • getAddress

      default String getAddress()
      Returns:
      comma separated server address list in form of (host):(port). Example: "myserver:3306,myserver2:3306"
    • getDatabaseName

      String getDatabaseName()
      This must be different from that of SAGA and other SAGA Modules.
      Returns:
      the unique database/tablespace used by this connection
    • getDatabaseParams

      default String getDatabaseParams()
      Returns:
      ampersand (&) separated path parameters of JDBC URL Example: "myParam=true&mySecondParam=aValue"
    • getName

      default String getName()
      Specified by:
      getName in interface io.ran.DbType