|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.configurator.db.DatabaseConfigPanel
public abstract class DatabaseConfigPanel
An abstract class that represents the GUI Config panel for a particular DB type. Each DB type will require a separate subclass with DB-specific operations.
Field Summary | |
---|---|
static int |
TEXT_FIELD_COLUMNS
|
Constructor Summary | |
---|---|
DatabaseConfigPanel()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int TEXT_FIELD_COLUMNS
Constructor Detail |
---|
public DatabaseConfigPanel()
Method Detail |
---|
public String toString()
toString
in class Object
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-home
ValidationException
- 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 saved
ValidationException
- if any of the new settings are Invalidpublic void testConnection(String jiraHome) throws ClassNotFoundException, SQLException, ValidationException
ClassNotFoundException
SQLException
ValidationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |