|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Datasource
A datasource that JIRA can use to connect to a database. Abstraction above the JNDI or JDBC configuration details and the methods that rely on those details.
Method Summary | |
---|---|
Connection |
getConnection(com.atlassian.config.bootstrap.AtlassianBootstrapManager bootstrapManager)
Uses the given link AtlassianBootstrapManager to acquire a Connection to the database defined by
this Datasource . |
org.ofbiz.core.entity.config.DatasourceInfo |
getDatasource(String datasourceName,
String databaseType,
String schemaName)
Get the equivalent Ofbiz DatasourceInfo config class for this Datasource. |
String |
getDescriptorLabel()
Provides the name of the datasource field that this datasource represents. |
String |
getDescriptorValue(String databaseType)
Provides a text description suitable for an administrator that identifies the datasource. |
Method Detail |
---|
Connection getConnection(com.atlassian.config.bootstrap.AtlassianBootstrapManager bootstrapManager) throws com.atlassian.config.bootstrap.BootstrapException
link AtlassianBootstrapManager
to acquire a Connection
to the database defined by
this Datasource
.
bootstrapManager
- the bootstrapManager to use to get the connection.
com.atlassian.config.bootstrap.BootstrapException
- if the connection cannot be established.org.ofbiz.core.entity.config.DatasourceInfo getDatasource(String datasourceName, String databaseType, String schemaName)
datasourceName
- the ofbiz name of the datasource.databaseType
- the field-type for the datasource as defined in ofbiz field-types.xmlschemaName
- the name of the schema for the database (may be empty)
DatasourceInfo
suitable for configuring Ofbiz.String getDescriptorValue(String databaseType)
databaseType
- the field-type for the datasource as defined in ofbiz field-types.xml
String getDescriptorLabel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |