org.h2.engine
Class SettingsBase

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

public class SettingsBase
extends java.lang.Object

The base class for settings.


Constructor Summary
protected SettingsBase(java.util.HashMap<java.lang.String,java.lang.String> s)
           
 
Method Summary
 boolean containsKey(java.lang.String k)
          Check if the settings contains the given key.
protected  boolean get(java.lang.String key, boolean defaultValue)
          Get the setting for the given key.
protected  int get(java.lang.String key, int defaultValue)
          Get the setting for the given key.
protected  java.lang.String get(java.lang.String key, java.lang.String defaultValue)
          Get the setting for the given key.
 java.util.HashMap<java.lang.String,java.lang.String> getSettings()
          Get all settings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SettingsBase

protected SettingsBase(java.util.HashMap<java.lang.String,java.lang.String> s)
Method Detail

get

protected boolean get(java.lang.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(java.lang.String key,
                  int defaultValue)
Get the setting for the given key.

Parameters:
key - the key
defaultValue - the default value
Returns:
the setting

get

protected java.lang.String get(java.lang.String key,
                               java.lang.String defaultValue)
Get the setting for the given key.

Parameters:
key - the key
defaultValue - the default value
Returns:
the setting

containsKey

public boolean containsKey(java.lang.String k)
Check if the settings contains the given key.

Parameters:
k - the key
Returns:
true if they do

getSettings

public java.util.HashMap<java.lang.String,java.lang.String> getSettings()
Get all settings.

Returns:
the settings