log4jConfigurer.setSelectColumn(ConfigurationEntity.COLUMN_VALUE_CLOB); log4jConfigurer.setWhereColumn(ConfigurationEntity.COLUMN_KEY); log4jConfigurer.setWhereValue(ConfigurationValue.LOG4J_OVERRIDE_CONFIGURATION.getKey());
/** * Gets a newly created Log4J overridable configurer for a database. * * @param configKey the configuration key to use as the where value. * * @return the Log4J overridable configurer. */ private Log4jOverridableConfigurer getLog4jOverridableConfigurerForDb(String configKey) { Log4jOverridableConfigurer log4jConfigurer = new Log4jOverridableConfigurer(); log4jConfigurer.setTableName(ConfigurationEntity.TABLE_NAME); log4jConfigurer.setSelectColumn(ConfigurationEntity.COLUMN_VALUE_CLOB); log4jConfigurer.setWhereColumn(ConfigurationEntity.COLUMN_KEY); log4jConfigurer.setWhereValue(configKey); log4jConfigurer.setDataSource(DaoSpringModuleConfig.getHerdDataSource()); log4jConfigurer.setApplicationContext(applicationContext); return log4jConfigurer; }