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 Object
implements DatabaseConfig


Constructor Summary
MySqlDatabaseConfig()
           
 
Method Summary
 String getClassName()
           
 String getDatabaseType()
           
 String getInstanceFieldName()
          The name of the "Instance" field for this DB.
 String getUrl(String hostname, String port, String instance)
          Returns the JDBC URL for this DB config.
 DatabaseInstance parseUrl(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 String getDatabaseType()
Specified by:
getDatabaseType in interface DatabaseConfig

getInstanceFieldName

public 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 String getClassName()
Specified by:
getClassName in interface DatabaseConfig

getUrl

public String getUrl(String hostname,
                     String port,
                     String instance)
Description copied from interface: DatabaseConfig
Returns the JDBC URL for this DB config.

Specified by:
getUrl in interface DatabaseConfig
Parameters:
hostname - the hostname
port - the TCP/IP port number
instance - the DB "instance"
Returns:
the JDBC URL for this DB config.

parseUrl

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


Copyright © 2002-2014 Atlassian. All Rights Reserved.