com.rhi.architecture.batch
Class DBConfigMixin

java.lang.Object
  extended bycom.rhi.architecture.batch.DBConfigMixin
All Implemented Interfaces:
ConfigMixin

public class DBConfigMixin
extends java.lang.Object
implements ConfigMixin

ConfigMixin which loads configuration data from a database.

Author:
Pete McKinstry

Field Summary
static java.lang.String JDBC_DRIVER
          the configuration key used to store the JDBC driver name
static java.lang.String JDBC_PASSWORD
          the configuration key used to store the DB password
static java.lang.String JDBC_URL
          the configuration key used to store the DB url.
static java.lang.String JDBC_USER
          the configuration key used to store the DB user
static java.lang.String PROPERTY_KEY
          the name of the column in the DB storing configuration keys
static java.lang.String PROPERTY_VALUE
          the name of the column in the DB storing the value for a configuration key
static java.lang.String PROPS_QUERY
          the configuration key used to store the SQL for selecting configuration values from the database.
 
Constructor Summary
DBConfigMixin()
          constructor
 
Method Summary
 void loadConfiguration(java.util.Properties props)
          Retrieve property values & append them to the provided default application properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JDBC_DRIVER

public static final java.lang.String JDBC_DRIVER
the configuration key used to store the JDBC driver name

See Also:
Constant Field Values

JDBC_USER

public static final java.lang.String JDBC_USER
the configuration key used to store the DB user

See Also:
Constant Field Values

JDBC_PASSWORD

public static final java.lang.String JDBC_PASSWORD
the configuration key used to store the DB password

See Also:
Constant Field Values

JDBC_URL

public static final java.lang.String JDBC_URL
the configuration key used to store the DB url.

See Also:
Constant Field Values

PROPS_QUERY

public static final java.lang.String PROPS_QUERY
the configuration key used to store the SQL for selecting configuration values from the database.

See Also:
Constant Field Values

PROPERTY_KEY

public static final java.lang.String PROPERTY_KEY
the name of the column in the DB storing configuration keys

See Also:
Constant Field Values

PROPERTY_VALUE

public static final java.lang.String PROPERTY_VALUE
the name of the column in the DB storing the value for a configuration key

See Also:
Constant Field Values
Constructor Detail

DBConfigMixin

public DBConfigMixin()
constructor

Method Detail

loadConfiguration

public void loadConfiguration(java.util.Properties props)
                       throws InitializationException
Description copied from interface: ConfigMixin
Retrieve property values & append them to the provided default application properties. This provides an extensible mechanism for configuration information.

Specified by:
loadConfiguration in interface ConfigMixin
Parameters:
props -
Throws:
InitializationException
See Also:
ConfigMixin.loadConfiguration(java.util.Properties)


Copyright © 2002-2004 Robert Half International. All Rights Reserved.