Class LocalH2Database
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.database.Database>
-
- org.jenkinsci.plugins.database.Database
-
- org.jenkinsci.plugins.database.h2.LocalH2Database
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<org.jenkinsci.plugins.database.Database>
public class LocalH2Database extends org.jenkinsci.plugins.database.Database
Embedded (aka local) H2 database. This stores database in a local file.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LocalH2Database.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description LocalH2Database(File path, boolean autoServer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getAutoServer()
DataSource
getDataSource()
File
getPath()
static void
setDefaultGlobalDatabase()
-
-
-
Constructor Detail
-
LocalH2Database
@DataBoundConstructor public LocalH2Database(File path, boolean autoServer)
-
-
Method Detail
-
getPath
public File getPath()
-
getDataSource
public DataSource getDataSource() throws SQLException
- Specified by:
getDataSource
in classorg.jenkinsci.plugins.database.Database
- Throws:
SQLException
-
getAutoServer
public boolean getAutoServer()
-
setDefaultGlobalDatabase
@Initializer(after=PLUGINS_STARTED) public static void setDefaultGlobalDatabase()
-
-