|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.config.database.DatabaseConfig
public final class DatabaseConfig
The configuration for JIRA to connect to the database.
| Field Summary | |
|---|---|
static String |
DEFAULT_DATASOURCE_NAME
The name of the default JNDI datasource. |
static String |
DEFAULT_DELEGATOR_NAME
The name of the default delegator. |
| Constructor Summary | |
|---|---|
DatabaseConfig(String databaseType,
String schemaName,
Datasource datasource)
Uses defaults for OfBiz Datasource name and Delegator name. |
|
DatabaseConfig(String datasourceName,
String delegatorName,
String databaseType,
String schemaName,
Datasource datasource)
|
|
| Method Summary | |
|---|---|
String |
getDatabaseType()
Get the database type |
Datasource |
getDatasource()
Get the datasource |
org.ofbiz.core.entity.config.DatasourceInfo |
getDatasourceInfo()
|
String |
getDatasourceName()
Get the name of the data source. |
String |
getDelegatorName()
Get the name of the delegate. |
String |
getDescriptorLabel()
|
String |
getDescriptorValue()
|
String |
getSchemaName()
Get the schema name |
boolean |
isDatabaseEmpty(com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager bootstrapManager)
|
StartupCheck |
testConnection(com.atlassian.config.bootstrap.AtlassianBootstrapManager bootstrapManager)
Tests the connection using the given bootstrapManager. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_DATASOURCE_NAME
public static final String DEFAULT_DELEGATOR_NAME
| Constructor Detail |
|---|
public DatabaseConfig(String databaseType,
String schemaName,
Datasource datasource)
databaseType - the name that matches the field types defined in entityengine.xmlschemaName - if the database needs it, the name of the schema. e.g. "public" is common in postgres.datasource - the definition of the jdbc or jndi details.
public DatabaseConfig(String datasourceName,
String delegatorName,
String databaseType,
String schemaName,
Datasource datasource)
| Method Detail |
|---|
public StartupCheck testConnection(com.atlassian.config.bootstrap.AtlassianBootstrapManager bootstrapManager)
throws com.atlassian.config.bootstrap.BootstrapException
bootstrapManager - to use for testing the connection.
com.atlassian.config.bootstrap.BootstrapException - on connection failure.
public boolean isDatabaseEmpty(com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager bootstrapManager)
throws com.atlassian.config.bootstrap.BootstrapException
com.atlassian.config.bootstrap.BootstrapExceptionpublic String getDatasourceName()
public String getDelegatorName()
public String getDatabaseType()
public String getSchemaName()
public Datasource getDatasource()
public org.ofbiz.core.entity.config.DatasourceInfo getDatasourceInfo()
public String getDescriptorValue()
public String getDescriptorLabel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||