public class DefaultDBConfig extends AbstractDBConfig
| Constructor and Description |
|---|
DefaultDBConfig()
Constructs the configuration with the current system path as the
configuration path.
|
DefaultDBConfig(File current_path)
Constructs the configuration.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getDefaultValue(String property_key)
Gets the default value for the given property value.
|
void |
loadFromFile(File configuration_file)
Loads all the configuration settings from a configuration file.
|
void |
loadFromStream(InputStream input)
Loads all the configuration values from the given InputStream.
|
void |
loadFromURL(URL configuration_url)
Loads all the configuration values from the given URL.
|
void |
setDatabasePath(String path)
Sets the path of the database.
|
void |
setIgnoreIdentifierCase(boolean status)
Sets that the engine ignores case for identifiers.
|
void |
setLogPath(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(String property_key,
String value)
Overwrites the configuration key with the given value.
|
currentPath, getValue, immutableCopypublic DefaultDBConfig(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()
protected String getDefaultValue(String property_key)
getDefaultValue in class AbstractDBConfigpublic void setValue(String property_key, String value)
setValue in class AbstractDBConfigpublic void loadFromStream(InputStream input) throws IOException
IOExceptionpublic void loadFromFile(File configuration_file) throws IOException
IOExceptionpublic void loadFromURL(URL configuration_url) throws IOException
IOExceptionpublic void setDatabasePath(String path)
public void setLogPath(String path)
public void setIgnoreIdentifierCase(boolean status)
public void setReadOnly(boolean status)
public void setMinimumDebugLevel(int debug_level)
Copyright © 2016. All rights reserved.