public abstract class DatabaseConfigPanel extends Object
Modifier and Type | Field and Description |
---|---|
static int |
TEXT_FIELD_COLUMNS |
Constructor and Description |
---|
DatabaseConfigPanel() |
Modifier and Type | Method and Description |
---|---|
abstract String |
getClassName() |
abstract String |
getDisplayName() |
abstract JPanel |
getPanel() |
abstract String |
getPassword() |
abstract String |
getSchemaName()
For DB's that want to allow entity-engine to set a schema-name, this will return the user's selected Schema-name
|
abstract String |
getUrl(String jiraHome)
Returns the JDBC URL for this DB config.
|
abstract String |
getUsername() |
void |
saveSettings(Settings newSettings,
String jiraHome)
Apply the current user entered settings into the given Settings object.
|
abstract void |
setSettings(Settings settings) |
void |
testConnection(String jiraHome) |
String |
toString() |
abstract void |
validate()
Verify that the settings are valid.
|
public static final int TEXT_FIELD_COLUMNS
public abstract void validate() throws ValidationException
ValidationException
- if any config is invalid.public abstract String getDisplayName()
public abstract String getClassName()
public abstract String getUrl(String jiraHome) throws ValidationException
The current jira-home is passed because it used by HSQL.
jiraHome
- The current configured jira-homeValidationException
- If the underlying configuration is invalid for this DB type. eg for Postgres, "Database" (instance) is a required fieldpublic abstract String getUsername()
public abstract String getPassword()
public abstract String getSchemaName()
public abstract JPanel getPanel()
public abstract void setSettings(Settings settings) throws ParseException
ParseException
public void saveSettings(Settings newSettings, String jiraHome) throws ValidationException
newSettings
- The Settings object to set the values in.jiraHome
- the jira home where the settings should be savedValidationException
- if any of the new settings are Invalidpublic void testConnection(String jiraHome) throws ClassNotFoundException, SQLException, ValidationException
Copyright © 2002-2015 Atlassian. All Rights Reserved.