public abstract class PerItemDatabase extends AbstractDescribableImpl<PerItemDatabase> implements ExtensionPoint
Database but assumes that there is a separate database per item.
Typically would be implemented by an embeddable database capable of loading from the root directory.
It is recommended, but not required, that implementations have a no-argument DataBoundConstructor,
which permits them to be configured by default merely by installing a plugin.ExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
PerItemDatabase() |
| Modifier and Type | Method and Description |
|---|---|
abstract DataSource |
getDataSource(TopLevelItem item)
Loads the database for an item.
|
PerItemDatabaseDescriptor |
getDescriptor() |
public abstract DataSource getDataSource(TopLevelItem item) throws SQLException
item - a job, folder, etc.SQLException - in case it is impossible to connect to the databasepublic PerItemDatabaseDescriptor getDescriptor()
getDescriptor in interface Describable<PerItemDatabase>getDescriptor in class AbstractDescribableImpl<PerItemDatabase>Copyright © 2016–2020. All rights reserved.