|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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)
|
boolean |
isHSql()
Returns true if this configuration is for an HSql database |
boolean |
isMySql()
Returns true if this configuration is for a MySQL database |
boolean |
isOracle()
Returns true if this configuration is for an Oracle database |
boolean |
isPostgres()
Returns true if this configuration is for a Postgres database |
boolean |
isSqlServer()
Returns true if this configuration is for a SqlServer database |
StartupCheck |
testConnection(com.atlassian.config.bootstrap.AtlassianBootstrapManager bootstrapManager)
Tests the connection using the given bootstrapManager. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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.BootstrapException
public String getDatasourceName()
public String getDelegatorName()
public String getDatabaseType()
public boolean isHSql()
true
if this configuration is for an HSql database
true
if this configuration is for an HSql databasepublic boolean isMySql()
true
if this configuration is for a MySQL database
true
if this configuration is for a MySQL databasepublic boolean isOracle()
true
if this configuration is for an Oracle database
true
if this configuration is for an Oracle databasepublic boolean isPostgres()
true
if this configuration is for a Postgres database
true
if this configuration is for a Postgres databasepublic boolean isSqlServer()
true
if this configuration is for a SqlServer database
true
if this configuration is for a SqlServer databasepublic String getSchemaName()
public Datasource getDatasource()
public org.ofbiz.core.entity.config.DatasourceInfo getDatasourceInfo()
public String getDescriptorValue()
public String getDescriptorLabel()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |