java.lang.Object | |
↳ | com.atlassian.jira.config.database.JdbcDatasource |
A JDBC datasource. Note: The direct constructors for this
class are all deprecated. Use the JdbcDatasource.Builder
instead.
Several getters are also deprecated because the same data
can be obtained indirectly through getConnectionPoolInfo()
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
JdbcDatasource.Builder | This is a builder class for constructing a JdbcDatasource manually. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Factory method to create a new
JdbcDatasource.Builder for constructing a
JdbcDatasource using a chain of named setters rather than a
long list of parameters in a specific order. | |||||||||||
Uses the given
link AtlassianBootstrapManager to acquire a Connection to the database defined by
this Datasource . | |||||||||||
Get the equivalent Ofbiz DatasourceInfo config class for this Datasource.
| |||||||||||
Provides the name of the datasource field that this datasource represents.
| |||||||||||
Provides a text description suitable for an administrator that identifies the datasource.
| |||||||||||
The class name for the driver
| |||||||||||
The JDBC URL
| |||||||||||
The password for the database connection
| |||||||||||
The username for the database connection
| |||||||||||
This setting is soley so the config tool can avoid the fatal side-effect of registering the JDBC driver in this
class's constructor.
| |||||||||||
Serializes this JDBC to an XML element.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.config.database.Datasource
|
Factory method to create a new JdbcDatasource.Builder
for constructing a
JdbcDatasource using a chain of named setters rather than a
long list of parameters in a specific order.
JdbcDatasource.Builder
Uses the given link AtlassianBootstrapManager
to acquire a Connection
to the database defined by
this Datasource
.
bootstrapManager | the bootstrapManager to use to get the connection. |
---|
BootstrapException |
---|
Get the equivalent Ofbiz DatasourceInfo config class for this Datasource. This effectively translates between this datasource and the ofbiz entityengine.xml of yore.
datasourceName | the ofbiz name of the datasource. |
---|---|
databaseType | the field-type for the datasource as defined in ofbiz field-types.xml |
schemaName | the name of the schema for the database (may be empty) |
Provides the name of the datasource field that this datasource represents. Effectively, it delegates the name of the datasource field when the configuration is being described to an administrator and will say "JDBC Config" or "JNDI Name" as appropriate.
Provides a text description suitable for an administrator that identifies the datasource.
databaseType | the field-type for the datasource as defined in ofbiz field-types.xml |
---|
The class name for the driver
This setting is soley so the config tool can avoid the fatal side-effect of registering the JDBC driver in this class's constructor.
registerDriverOnConstruct | If true we do "Class.forName(driverClassName);" in the Constructor. |
---|
Serializes this JDBC to an XML element. This creates a child element called jdbc-datasource which contains the settings.
element | the parent element within which to write the JDBC Datasource. |
---|