Package org.jenkinsci.plugins.database
Class NoDatabase
java.lang.Object
hudson.model.AbstractDescribableImpl<Database>
org.jenkinsci.plugins.database.Database
org.jenkinsci.plugins.database.NoDatabase
- All Implemented Interfaces:
ExtensionPoint
,Describable<Database>
Pseudo instance in case the configuration of
Database
needs a "(none)" option.
You can define your config.groovy
as follows to have "(none)" appear as the default.
Also, see GlobalDatabaseConfiguration.setDatabase(Database)
for the necessary fix up
on the setter (or in the constructor.)
f.dropdownDescriptorSelector(field:"database",title:_("Database"),descriptors:NoDatabase.allPlusNone())
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jenkinsci.plugins.database.Database
getDescriptor, isOTelJdbcInstrumentationEnabled
-
Constructor Details
-
NoDatabase
@DataBoundConstructor public NoDatabase()
-
-
Method Details
-
getDataSource
- Specified by:
getDataSource
in classDatabase
- Throws:
SQLException
-
allPlusNone
-