logger.debug("produce() - start");
File dir = this.controlFilesDir;
if (!this.controlFilesDir.isDirectory()) {
throw new DataSetException("'"
+ this.controlFilesDir + "' should be a directory of the control files");
}
this.consumer.startDataSet();
for (Iterator tableIter = this.orderedTableNames.iterator(); tableIter.hasNext();) {
String table = (String) tableIter.next();
try {
File ctlFile = new File(dir, table + ".ctl");
produceFromControlFile(ctlFile);
}
catch (SqlLoaderControlParserException e) {
throw new DataSetException("error producing dataset for table '" + table + "'", e);
}
catch (DataSetException e) {
throw new DataSetException("error producing dataset for table '" + table + "'", e);
}
}
this.consumer.endDataSet();
}