Interface JdbcUrlParser

All Known Implementing Classes:
AuroraPostgresUrlParser, MySqlUrlParser, OracleUrlParser, PostgresUrlParser, SqlServerJtdsDriverUrlParser, SqlServerMicrosoftDriverUrlParser

public interface JdbcUrlParser
Implementations of this interface provide DB-specific JDBC url parsing.
  • Method Details

    • parseUrl

      DatabaseInstance parseUrl(String jdbcUrl) throws ParseException
      Throws:
      ParseException
    • getUrl

      String getUrl(String hostname, String port, String instance) throws ParseException
      Returns the JDBC URL for this DB config.
      Parameters:
      hostname - the hostname
      port - the TCP/IP port number
      instance - the DB "instance"
      Returns:
      the JDBC URL for this DB config.
      Throws:
      ValidationException - If the underlying configuration is invalid for this DB type. eg for Postgres, "Database" (instance) is a required field
      ParseException