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.
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 hostnameport
- the TCP/IP port numberinstance
- 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.