public class

PostgresDatabaseConfig

extends Object
implements DatabaseConfig
java.lang.Object
   ↳ com.atlassian.jira.configurator.db.PostgresDatabaseConfig

Summary

Public Constructors
PostgresDatabaseConfig()
Public Methods
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)
Protected Methods
String getProtocolPrefix()
String removeProtocolPrefix(String jdbcUrl)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.configurator.db.DatabaseConfig

Public Constructors

public PostgresDatabaseConfig ()

Public Methods

public String getClassName ()

public String getDatabaseType ()

public 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.

public String getUrl (String hostname, String port, String instance)

Returns the JDBC URL for this DB config.

Parameters
hostname the hostname
port the TCP/IP port number
instance the DB "instance"
Returns
  • the JDBC URL for this DB config.

public DatabaseInstance parseUrl (String jdbcUrl)

Protected Methods

protected String getProtocolPrefix ()

protected String removeProtocolPrefix (String jdbcUrl)