com.atlassian.jira.configurator.db
Class MySqlDatabaseConfig

java.lang.Object
  extended by com.atlassian.jira.configurator.db.MySqlDatabaseConfig
All Implemented Interfaces:
DatabaseConfig

public class MySqlDatabaseConfig
extends java.lang.Object
implements DatabaseConfig


Constructor Summary
MySqlDatabaseConfig()
           
 
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MySqlDatabaseConfig

public MySqlDatabaseConfig()
Method Detail

getDatabaseType

public java.lang.String getDatabaseType()
Specified by:
getDatabaseType in interface DatabaseConfig

getInstanceFieldName

public java.lang.String getInstanceFieldName()
Description copied from interface: DatabaseConfig
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".

Specified by:
getInstanceFieldName in interface DatabaseConfig
Returns:
name of the "Instance" field for this DB.

getClassName

public java.lang.String getClassName()
Specified by:
getClassName in interface DatabaseConfig

getUrl

public java.lang.String getUrl(java.lang.String hostname,
                               java.lang.String port,
                               java.lang.String instance)
Specified by:
getUrl in interface DatabaseConfig

parseUrl

public DatabaseInstance parseUrl(java.lang.String jdbcUrl)
                          throws ParseException
Specified by:
parseUrl in interface DatabaseConfig
Throws:
ParseException


Copyright © 2002-2011 Atlassian. All Rights Reserved.