Class ConfigReader
- java.lang.Object
-
- de.julielab.costosys.configuration.ConfigReader
-
public class ConfigReader extends java.lang.ObjectThis 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 Summary
Constructors Constructor Description ConfigReader(java.io.InputStream def)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetActiveDataSchema()java.lang.StringgetActiveDataTable()java.lang.StringgetActiveSchemaName()DBConfiggetDatabaseConfig()Accessing the Database ConfigurationFieldConfigurationManagergetFieldConfigs()Accessing the Field Definitions.byte[]getMergedConfigData()java.util.List<java.lang.String>getTableSchemaNames()
-
-
-
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)whereschemaNameis the name of the table schema represented byfieldConfig.- 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()
-
-