Class ConfigReader


  • public class ConfigReader
    extends java.lang.Object
    This class reads an xml configuration file, containing the definition of a database connection and the fields used in the database. It provides those definitions as specialized objects.
    Author:
    hellrich
    • Constructor Detail

      • ConfigReader

        public ConfigReader​(java.io.InputStream def)
    • Method Detail

      • getDatabaseConfig

        public DBConfig getDatabaseConfig()
        Accessing the Database Configuration
        Returns:
        - DatabaseConfig Object
      • getFieldConfigs

        public FieldConfigurationManager getFieldConfigs()

        Accessing the Field Definitions.

        The returned map consists of pairs in the form (schemaName, fieldConfig) where schemaName is the name of the table schema represented by fieldConfig.

        Returns:
        - A map containing all table schemas in the default and in the user configuration.
      • getActiveDataTable

        public java.lang.String getActiveDataTable()
        Returns:
        the activeDataTable
      • getActiveDataSchema

        public java.lang.String getActiveDataSchema()
      • getActiveSchemaName

        public java.lang.String getActiveSchemaName()
        Returns:
        the activeSchemaName
      • getMergedConfigData

        public byte[] getMergedConfigData()
        Returns:
        the mergedConfigData
      • getTableSchemaNames

        public java.util.List<java.lang.String> getTableSchemaNames()