public class ConfigReader extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_DEFINITION |
static String |
XPATH_ACTIVE_DB |
static String |
XPATH_ACTIVE_PG_SCHEMA |
static String |
XPATH_ACTIVE_TABLE_SCHEMA |
static String |
XPATH_CONF_DB |
static String |
XPATH_CONF_DBS |
static String |
XPATH_CONF_SCHEMA |
static String |
XPATH_CONF_SCHEMAS |
static String |
XPATH_MAX_CONNS |
| Constructor and Description |
|---|
ConfigReader(InputStream def) |
| Modifier and Type | Method and Description |
|---|---|
protected static byte[][] |
extractConfigData(byte[] confData)
Retrieves XML elements (determined by the used path) from the
configuration.
|
String |
getActiveDataSchema() |
String |
getActiveDataTable() |
String |
getActiveSchemaName() |
DBConfig |
getDatabaseConfig()
Accessing the Database Configuration
|
FieldConfigurationManager |
getFieldConfigs()
Accessing the Field Definitions.
|
byte[] |
getMergedConfigData() |
List<String> |
getTableSchemaNames() |
protected static byte[] |
mergeConfigData(byte[] defaultConfData,
byte[] userConfData)
Inserts the user schemes into the default configuration.
|
public static final String DEFAULT_DEFINITION
public static final String XPATH_ACTIVE_TABLE_SCHEMA
public static final String XPATH_ACTIVE_DB
public static final String XPATH_ACTIVE_PG_SCHEMA
public static final String XPATH_MAX_CONNS
public static final String XPATH_CONF_DBS
public static final String XPATH_CONF_SCHEMAS
public static final String XPATH_CONF_DB
public static final String XPATH_CONF_SCHEMA
public ConfigReader(InputStream def)
protected static byte[] mergeConfigData(byte[] defaultConfData,
byte[] userConfData)
throws com.ximpleware.VTDException,
IOException
defaultConfData - - prepared default configuration fileuserConfData - - prepared user specific configuration filecom.ximpleware.VTDExceptionIOExceptionprotected static byte[][] extractConfigData(byte[] confData)
throws IOException,
com.ximpleware.VTDException
confData - - prepared XMLIOExceptioncom.ximpleware.VTDExceptionpublic DBConfig getDatabaseConfig()
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.
public String getActiveDataTable()
public String getActiveDataSchema()
public String getActiveSchemaName()
public byte[] getMergedConfigData()
Copyright © 2018 JULIE Lab, Germany. All rights reserved.