public class DatabaseManagerBase extends java.lang.Object implements HasProperties
Modifier and Type | Class and Description |
---|---|
static class |
DatabaseManagerBase.DatabaseConfigurationInformationStatus
The Enum DatabaseConfigurationInformationStatus.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
defaultPropertiesFileName
This is the default file name for the XBRLRepository configuration.
|
Constructor and Description |
---|
DatabaseManagerBase(boolean bCreateDefault,
boolean bHasGUI)
Creates an instance of the DatabaseManagerBase using the default configuration file name.
|
DatabaseManagerBase(boolean bCreateDefault,
boolean bHasGUI,
java.lang.String propertiesFileName)
Creates an instance of the DatabaseManagerBase using the indicated file name.
|
DatabaseManagerBase(java.util.Properties props)
Creates an instance of the DatabaseManagerBase with properties created externally.
|
Modifier and Type | Method and Description |
---|---|
java.util.Properties |
getProperties()
Access back to the properties object.
|
DatabaseManagerBase.DatabaseConfigurationInformationStatus |
getStatus()
Gets the status.
|
void |
loadProperties(boolean bCreateDefault,
boolean bHasGUI)
If the parameter is true, a new file will be created with default values if the file is not found.
|
void |
saveProperties()
Stores the application properties to disk.
|
void |
setProperties(java.util.Properties p)
Sets the properties to be used.
|
public static final java.lang.String defaultPropertiesFileName
public DatabaseManagerBase(boolean bCreateDefault, boolean bHasGUI)
bCreateDefault
- the b create defaultbHasGUI
- the b has guipublic DatabaseManagerBase(boolean bCreateDefault, boolean bHasGUI, java.lang.String propertiesFileName)
bCreateDefault
- the b create defaultbHasGUI
- the b has guipropertiesFileName
- the properties file namepublic DatabaseManagerBase(java.util.Properties props)
The following properties MUST be set:
props
- the propspublic void loadProperties(boolean bCreateDefault, boolean bHasGUI)
bCreateDefault
- the b create defaultbHasGUI
- the b has guipublic DatabaseManagerBase.DatabaseConfigurationInformationStatus getStatus()
public void saveProperties()
saveProperties
in interface HasProperties
public java.util.Properties getProperties()
getProperties
in interface HasProperties
public void setProperties(java.util.Properties p)
p
- the new propertiesCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa