com.ihr.xbrl.manage
Class DatabaseManagerBase

java.lang.Object
  extended by com.ihr.xbrl.manage.DatabaseManagerBase

public class DatabaseManagerBase
extends java.lang.Object

This is the base class that is able to read the properties from the user preferences file and write them down. The class requires another class that implements the user interface. The idea is that the user interface can be implemented in several programming languages while this class can be reused in the different GUI frameworks.

Author:
Ignacio

Nested Class Summary
static class DatabaseManagerBase.DatabaseConfigurationInformationStatus
           
 
Field Summary
static java.lang.String defaultPropertiesFileName
          This is the default file name for the XBRLRepository configuration
 
Constructor Summary
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
 
Method Summary
 java.util.Properties getProperties()
          Access back to the properties object.
 DatabaseManagerBase.DatabaseConfigurationInformationStatus getStatus()
           
 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 setProperties(java.util.Properties p)
          Sets the properties to be used.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultPropertiesFileName

public static final java.lang.String defaultPropertiesFileName
This is the default file name for the XBRLRepository configuration

See Also:
Constant Field Values
Constructor Detail

DatabaseManagerBase

public DatabaseManagerBase(boolean bCreateDefault,
                           boolean bHasGUI)
Creates an instance of the DatabaseManagerBase using the default configuration file name

Parameters:
bCreateDefault -
bHasGUI -

DatabaseManagerBase

public DatabaseManagerBase(boolean bCreateDefault,
                           boolean bHasGUI,
                           java.lang.String propertiesFileName)
Creates an instance of the DatabaseManagerBase using the indicated file name

Parameters:
propertiesFileName -
bCreateDefault -
bHasGUI -
Method Detail

loadProperties

public 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. If the parameter is false, a new file will not be created if the file is not found.

Parameters:
bCreateDefault -

getStatus

public DatabaseManagerBase.DatabaseConfigurationInformationStatus getStatus()

getProperties

public java.util.Properties getProperties()
Access back to the properties object.

Returns:
Properties

setProperties

public void setProperties(java.util.Properties p)
Sets the properties to be used. This method should be called from the setProperties method in the GUI class and it makes a call to updateAllFields in the GUI class.

Parameters:
p -


Copyright 2006-2009 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa