|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mckoi.database.control.AbstractDBConfig
public class AbstractDBConfig
An abstract implementation of DBConfig.
Constructor Summary | |
---|---|
AbstractDBConfig(java.io.File current_path)
Constructs the DBConfig. |
Method Summary | |
---|---|
java.io.File |
currentPath()
Returns the current path set for this configuration. |
protected java.lang.String |
getDefaultValue(java.lang.String property_key)
Returns the default value for the configuration property with the given key. |
java.lang.String |
getValue(java.lang.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(java.lang.String property_key,
java.lang.String val)
Sets the configuration value for the key property key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractDBConfig(java.io.File current_path)
Method Detail |
---|
protected java.lang.String getDefaultValue(java.lang.String property_key)
protected void setValue(java.lang.String property_key, java.lang.String val)
public java.io.File currentPath()
DBConfig
currentPath
in interface DBConfig
public java.lang.String getValue(java.lang.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.
getValue
in interface DBConfig
public DBConfig immutableCopy()
DBConfig
immutableCopy
in interface DBConfig
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |