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 propertiesFileName
           
 
Constructor Summary
DatabaseManagerBase(boolean bCreateDefault)
           
 
Method Summary
 java.util.Properties getProperties()
          Access back to the properties object.
 DatabaseManagerBase.DatabaseConfigurationInformationStatus getStatus()
           
 void loadProperties(boolean bCreateDefault)
          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

propertiesFileName

public static final java.lang.String propertiesFileName
See Also:
Constant Field Values
Constructor Detail

DatabaseManagerBase

public DatabaseManagerBase(boolean bCreateDefault)
Parameters:
bCreateDefault -
Method Detail

loadProperties

public void loadProperties(boolean bCreateDefault)
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