Package org.h2.engine

Class SettingsBase

java.lang.Object
org.h2.engine.SettingsBase
Direct Known Subclasses:
DbSettings

public class SettingsBase extends Object
The base class for settings.
  • Constructor Details

  • Method Details

    • get

      protected boolean get(String key, boolean defaultValue)
      Get the setting for the given key.
      Parameters:
      key - the key
      defaultValue - the default value
      Returns:
      the setting
    • get

      protected int get(String key, int defaultValue)
      Get the setting for the given key.
      Parameters:
      key - the key
      defaultValue - the default value
      Returns:
      the setting
    • get

      protected String get(String key, String defaultValue)
      Get the setting for the given key.
      Parameters:
      key - the key
      defaultValue - the default value
      Returns:
      the setting
    • containsKey

      protected boolean containsKey(String k)
      Check if the settings contains the given key.
      Parameters:
      k - the key
      Returns:
      true if they do
    • getSettings

      public HashMap<String,String> getSettings()
      Get all settings.
      Returns:
      the settings
    • getSortedSettings

      public Map.Entry<String,String>[] getSortedSettings()
      Get all settings in alphabetical order.
      Returns:
      the settings