Package org.h2.engine
Class SettingsBase
java.lang.Object
org.h2.engine.SettingsBase
- Direct Known Subclasses:
DbSettings
The base class for settings.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanCheck if the settings contains the given key.protected booleanGet the setting for the given key.protected intGet the setting for the given key.protected StringGet the setting for the given key.Get all settings.Get all settings in alphabetical order.(package private) voidSet an entry in the key-value pair.
-
Field Details
-
settings
-
-
Constructor Details
-
SettingsBase
-
-
Method Details
-
get
Get the setting for the given key.- Parameters:
key- the keydefaultValue- the default value- Returns:
- the setting
-
set
Set an entry in the key-value pair.- Parameters:
key- the keyvalue- the value
-
get
Get the setting for the given key.- Parameters:
key- the keydefaultValue- the default value- Returns:
- the setting
-
get
Get the setting for the given key.- Parameters:
key- the keydefaultValue- the default value- Returns:
- the setting
-
containsKey
Check if the settings contains the given key.- Parameters:
k- the key- Returns:
- true if they do
-
getSettings
Get all settings.- Returns:
- the settings
-
getSortedSettings
Get all settings in alphabetical order.- Returns:
- the settings
-