|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mckoi.database.control.AbstractDBConfig
com.mckoi.database.control.DefaultDBConfig
public class DefaultDBConfig
Implements a default database configuration that is useful for setting up a database. This configuration object is mutable. Configuration properties can be set by calling the 'setxxx' methods.
Constructor Summary | |
---|---|
DefaultDBConfig()
Constructs the configuration with the current system path as the configuration path. |
|
DefaultDBConfig(java.io.File current_path)
Constructs the configuration. |
Method Summary | |
---|---|
protected java.lang.String |
getDefaultValue(java.lang.String property_key)
Gets the default value for the given property value. |
void |
loadFromFile(java.io.File configuration_file)
Loads all the configuration settings from a configuration file. |
void |
loadFromStream(java.io.InputStream input)
Loads all the configuration values from the given InputStream. |
void |
loadFromURL(java.net.URL configuration_url)
Loads all the configuration values from the given URL. |
void |
setDatabasePath(java.lang.String path)
Sets the path of the database. |
void |
setIgnoreIdentifierCase(boolean status)
Sets that the engine ignores case for identifiers. |
void |
setLogPath(java.lang.String path)
Sets the path of the log. |
void |
setMinimumDebugLevel(int debug_level)
Sets the minimum debug level for output to the debug log file. |
void |
setReadOnly(boolean status)
Sets that the database is read only. |
void |
setValue(java.lang.String property_key,
java.lang.String value)
Overwrites the configuration key with the given value. |
Methods inherited from class com.mckoi.database.control.AbstractDBConfig |
---|
currentPath, getValue, immutableCopy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultDBConfig(java.io.File current_path)
the
- current path of the configuration in the file system. This is
useful if the configuration is based on a file with relative paths set
in it.public DefaultDBConfig()
Method Detail |
---|
protected java.lang.String getDefaultValue(java.lang.String property_key)
getDefaultValue
in class AbstractDBConfig
public void setValue(java.lang.String property_key, java.lang.String value)
setValue
in class AbstractDBConfig
public void loadFromStream(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public void loadFromFile(java.io.File configuration_file) throws java.io.IOException
java.io.IOException
public void loadFromURL(java.net.URL configuration_url) throws java.io.IOException
java.io.IOException
public void setDatabasePath(java.lang.String path)
public void setLogPath(java.lang.String path)
public void setIgnoreIdentifierCase(boolean status)
public void setReadOnly(boolean status)
public void setMinimumDebugLevel(int debug_level)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |