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.


Method Summary
 java.lang.String getClassName()
           
 java.lang.String getDatabaseType()
           
 java.lang.String getInstanceFieldName()
          The name of the "Instance" field for this DB.
 java.lang.String getUrl(java.lang.String hostname, java.lang.String port, java.lang.String instance)
           
 DatabaseInstance parseUrl(java.lang.String jdbcUrl)
           
 

Method Detail

getDatabaseType

java.lang.String getDatabaseType()

getInstanceFieldName

java.lang.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

java.lang.String getClassName()

parseUrl

DatabaseInstance parseUrl(java.lang.String jdbcUrl)
                          throws ParseException
Throws:
ParseException

getUrl

java.lang.String getUrl(java.lang.String hostname,
                        java.lang.String port,
                        java.lang.String instance)
                        throws ValidationException
Throws:
ValidationException


Copyright © 2002-2010 Atlassian. All Rights Reserved.