public class NoDatabase extends Database
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())
| Modifier and Type | Class and Description |
|---|---|
static class |
NoDatabase.DescriptorImpl |
ExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
NoDatabase() |
| Modifier and Type | Method and Description |
|---|---|
static List<DatabaseDescriptor> |
allPlusNone() |
DataSource |
getDataSource() |
getDescriptorpublic DataSource getDataSource() throws SQLException
getDataSource in class DatabaseSQLExceptionpublic static List<DatabaseDescriptor> allPlusNone()
Copyright © 2016–2021. All rights reserved.