public class AbstractDBConfig extends Object implements DBConfig
Constructor and Description |
---|
AbstractDBConfig(File current_path)
Constructs the DBConfig.
|
Modifier and Type | Method and Description |
---|---|
File |
currentPath()
Returns the current path set for this configuration.
|
protected String |
getDefaultValue(String property_key)
Returns the default value for the configuration property with the given
key.
|
String |
getValue(String property_key)
Returns the value that was set for the configuration property with the
given name.
|
DBConfig |
immutableCopy()
Makes an immutable copy of this configuration.
|
protected void |
setValue(String property_key,
String val)
Sets the configuration value for the key property key.
|
public AbstractDBConfig(File current_path)
protected String getDefaultValue(String property_key)
protected void setValue(String property_key, String val)
public File currentPath()
DBConfig
currentPath
in interface DBConfig
public String getValue(String property_key)
DBConfig
This method must always returns a value that the database engine can use provided the 'property_key' is a supported key. If the property key is not supported and the key was not set, null is returned.
public DBConfig immutableCopy()
DBConfig
immutableCopy
in interface DBConfig
Copyright © 2015. All rights reserved.