@Extension(ordinal=-33.0)
public class GlobalDatabaseConfiguration
extends jenkins.model.GlobalConfiguration
Database that's open for plugins to store arbitrary information.
If a plugin wishes to store some information globally to RDBMS, and if the data can co-exist with
the data from other plugins, use this shared database instance.
In cases where a plugin wants to store data in its own database separate from this shared instance,
you can do so by using Database directly.
There's also PerItemDatabaseConfiguration, which provides separate database for information
local to a specific job.
PerItemDatabaseConfiguration| Constructor and Description |
|---|
GlobalDatabaseConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json) |
Database |
getDatabase()
This is the configured
Database instance, or null in case none is configured yet. |
void |
setDatabase(Database database) |
all, getDescriptor, getDisplayName, getGlobalConfigPageaddHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, getCheckUrl, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap@CheckForNull public Database getDatabase()
Database instance, or null in case none is configured yet.public void setDatabase(Database database)
public boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json)
throws hudson.model.Descriptor.FormException
configure in class hudson.model.Descriptor<jenkins.model.GlobalConfiguration>hudson.model.Descriptor.FormExceptionCopyright © 2004-2012. All Rights Reserved.