Top Description Fields Constructors Methods
org.h2.engine

public Class SettingsBase

extends Object
Class Inheritance
Known Direct Subclasses
org.h2.engine.DbSettings
Imports
java.util.Arrays, .Comparator, .HashMap, .Map, .Map.Entry, org.h2.api.ErrorCode, org.h2.message.DbException, org.h2.util.Utils

The base class for settings.

Field Summary

Modifier and TypeField and Description
private final HashMap<String, String>

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
protected boolean

Returns:

true if they do
containsKey
(String
the key
k
)

Check if the settings contains the given key.

protected boolean

Returns:

the setting
get
(String
the key
key
,
boolean
the default value
defaultValue
)

Get the setting for the given key.

protected int

Returns:

the setting
get
(String
the key
key
,
int
the default value
defaultValue
)

Get the setting for the given key.

protected String

Returns:

the setting
get
(String
the key
key
,
String
the default value
defaultValue
)

Get the setting for the given key.

public HashMap<String, String>

Returns:

the settings
getSettings
()

Get all settings.

public Map.Entry<String, String>[]

Returns:

the settings
getSortedSettings
()

Get all settings in alphabetical order.

pack-priv void
set(String
the key
key
,
boolean
the value
value
)

Set an entry in the key-value pair.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

settingsback to summary
private final HashMap<String, String> settings

Constructor Detail

SettingsBaseback to summary
protected SettingsBase(HashMap<String, String> s)

Method Detail

containsKeyback to summary
protected boolean containsKey(String k)

Check if the settings contains the given key.

Parameters
k:String

the key

Returns:boolean

true if they do

getback to summary
protected boolean get(String key, boolean defaultValue)

Get the setting for the given key.

Parameters
key:String

the key

defaultValue:boolean

the default value

Returns:boolean

the setting

getback to summary
protected int get(String key, int defaultValue)

Get the setting for the given key.

Parameters
key:String

the key

defaultValue:int

the default value

Returns:int

the setting

getback to summary
protected String get(String key, String defaultValue)

Get the setting for the given key.

Parameters
key:String

the key

defaultValue:String

the default value

Returns:String

the setting

getSettingsback to summary
public HashMap<String, String> getSettings()

Get all settings.

Returns:HashMap<String, String>

the settings

getSortedSettingsback to summary
public Map.Entry<String, String>[] getSortedSettings()

Get all settings in alphabetical order.

Returns:Map.Entry<String, String>[]

the settings

setback to summary
pack-priv void set(String key, boolean value)

Set an entry in the key-value pair.

Parameters
key:String

the key

value:boolean

the value