* Setup Saver filling missing parameter values *
*/
public void setupSavers() {
logger.debug("IN");
for(int i = 0; i < savers.size(); i++) {
Saver saver = (Saver)savers.get(i);
String className = saver.getSaver().getClass().getName();
if(className.equalsIgnoreCase(DatabaseSaver.class.getName())) {
DatabaseSaver databaseSaver = (DatabaseSaver)saver.getSaver();
databaseSaver.setDbWriteMode(env.getWriteMode());
databaseSaver.setKeyColumnNames(env.getKeyColumnNames());
if( env.isVersioningEnabled() ) {
databaseSaver.setVersioning(true);
databaseSaver.setVersionColumnName( env.getVersionColumnName());
databaseSaver.setVersion( env.getVersion());
}
if( env.getOutConnection() != null ) {
databaseSaver.setDestination(env.getOutConnection());
}
} else if(className.equalsIgnoreCase(ArffSaver.class.getName())) {
ArffSaver arffSaver = (ArffSaver)saver.getSaver();
// setup operation goes here
}
}
logger.debug("OUT");
}