public abstract class CommonConfigPanel extends DatabaseConfigPanel
TEXT_FIELD_COLUMNS
Constructor and Description |
---|
CommonConfigPanel(DatabaseType databaseType) |
Modifier and Type | Method and Description |
---|---|
protected abstract JPanel |
buildConfigPanel() |
protected abstract String |
getHostname() |
protected abstract String |
getInstance() |
JPanel |
getPanel() |
String |
getPassword() |
protected abstract String |
getPort() |
String |
getUrl(String jiraHome)
Returns the JDBC URL for this DB config.
|
String |
getUsername() |
protected abstract void |
setSchemaName(String schemaName) |
void |
setSettings(Settings settings) |
protected abstract void |
setUrlSettings(DatabaseInstance connectionProperties) |
void |
validate()
Verify that the settings are valid.
|
getClassName, getDatabaseType, getDisplayName, getSchemaName, saveSettings, testConnection, toString
public CommonConfigPanel(DatabaseType databaseType)
public String getUsername()
getUsername
in class DatabaseConfigPanel
public String getPassword()
getPassword
in class DatabaseConfigPanel
public String getUrl(String jiraHome) throws ValidationException
DatabaseConfigPanel
The current jira-home is passed because it used by H2.
getUrl
in class DatabaseConfigPanel
jiraHome
- The current configured jira-homeValidationException
- If the underlying configuration is invalid for this DB type. eg for Postgres, "Database" (instance) is a required fieldprotected abstract String getHostname()
protected abstract String getPort()
protected abstract String getInstance()
public final JPanel getPanel()
getPanel
in class DatabaseConfigPanel
protected abstract JPanel buildConfigPanel()
public void setSettings(Settings settings) throws ParseException
setSettings
in class DatabaseConfigPanel
ParseException
protected abstract void setUrlSettings(DatabaseInstance connectionProperties) throws ParseException
ParseException
protected abstract void setSchemaName(String schemaName)
public void validate() throws ValidationException
DatabaseConfigPanel
validate
in class DatabaseConfigPanel
ValidationException
- if any config is invalid.Copyright © 2002-2024 Atlassian. All Rights Reserved.