de.fesenmeyer.dbnormalizer.core.configuration
Class SessionConfig

java.lang.Object
  extended by de.fesenmeyer.dbnormalizer.core.configuration.SessionConfig

public class SessionConfig
extends Object

The main configuration class which holds all the data for reading or writing a session.

Author:
DF

Field Summary
private  String configFileName
          The configuration filename.
private  DBConfig dbConfig
          The DB-Configuration, may be null if the session does not access a DB.
private  Collection<TableContainerConfig> tableContainerConfigs
          A collection of TableContainerConfig objects.
 
Constructor Summary
SessionConfig(String configFileName)
          Class constructor specifying the configuration file name.
 
Method Summary
 String getConfigFileName()
          Gets the configuration file name
 DBConfig getDbConfig()
          Gets the DB-Configuration.
 Collection<TableContainerConfig> getTableContainerConfigs()
          Gets the TableContainer configuration objects.
 void setConfigFileName(String configFileName)
          Sets the configuration file name.
 void setDbConfig(DBConfig dbConfig)
          Sets the DB-Configuration
 void setTableContainerConfigs(Collection<TableContainerConfig> tableContainerConfigs)
          Sets the TableContainer configuration objects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dbConfig

private DBConfig dbConfig
The DB-Configuration, may be null if the session does not access a DB.


configFileName

private String configFileName
The configuration filename.


tableContainerConfigs

private Collection<TableContainerConfig> tableContainerConfigs
A collection of TableContainerConfig objects.

Constructor Detail

SessionConfig

public SessionConfig(String configFileName)
Class constructor specifying the configuration file name.

Parameters:
configFileName - the configuration file name
Method Detail

getConfigFileName

public String getConfigFileName()
Gets the configuration file name

Returns:
the configuration file name

setConfigFileName

public void setConfigFileName(String configFileName)
Sets the configuration file name.

Parameters:
configFileName - the configuration file name

getDbConfig

public DBConfig getDbConfig()
Gets the DB-Configuration.

Returns:
the DB-Configuration, if the session accesses a DB; null, otherwise

setDbConfig

public void setDbConfig(DBConfig dbConfig)
Sets the DB-Configuration

Parameters:
dbConfig - the DB-Configuration

getTableContainerConfigs

public Collection<TableContainerConfig> getTableContainerConfigs()
Gets the TableContainer configuration objects.

Returns:
the TableContainer configuration objects
See Also:
TableContainerConfig

setTableContainerConfigs

public void setTableContainerConfigs(Collection<TableContainerConfig> tableContainerConfigs)
Sets the TableContainer configuration objects

Parameters:
tableContainerConfigs - the TableContainer configuration objects
See Also:
TableContainerConfig