com.atlassian.jira.config.database.jdbcurlparser
Interface JdbcUrlParser

All Known Implementing Classes:
MySqlUrlParser, OracleUrlParser, PostgresUrlParser, SqlServerUrlParser

public interface JdbcUrlParser

Implementations of this interface provide DB-specific JDBC url parsing.


Method Summary
 String getUrl(String hostname, String port, String instance)
          Returns the JDBC URL for this DB config.
 DatabaseInstance parseUrl(String jdbcUrl)
           
 

Method Detail

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


Copyright © 2002-2014 Atlassian. All Rights Reserved.