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
  • Constructor Details

    • LocalH2Database

      @DataBoundConstructor public LocalH2Database(File path, boolean autoServer)
  • Method Details

    • getPath

      public File getPath()
    • getDataSource

      public DataSource getDataSource() throws SQLException
      Specified by:
      getDataSource in class org.jenkinsci.plugins.database.Database
      Throws:
      SQLException
    • getAutoServer

      public boolean getAutoServer()
    • setDefaultGlobalDatabase

      @Initializer(after=PLUGINS_STARTED) public static void setDefaultGlobalDatabase()