com.atlassian.jira.configurator.db
Interface DatabaseConfig
- All Known Implementing Classes:
- MySqlDatabaseConfig, OracleDatabaseConfig, PostgresDatabaseConfig, SqlServerDatabaseConfig
public interface DatabaseConfig
Implementations of this interface provide DB-specific JDBC configuration operations.
getDatabaseType
String getDatabaseType()
getInstanceFieldName
String getInstanceFieldName()
- The name of the "Instance" field for this DB.
eg for Oracle it is "SID", while for MySQL and PostgreSQL it is "Database" and for MS-SQL it is "Instance".
- Returns:
- name of the "Instance" field for this DB.
getClassName
String getClassName()
parseUrl
DatabaseInstance parseUrl(String jdbcUrl)
throws ParseException
- Throws:
ParseException
getUrl
String getUrl(String hostname,
String port,
String instance)
throws ValidationException
- Throws:
ValidationException
Copyright © 2002-2011 Atlassian. All Rights Reserved.