} else {
query += "AND " + column.getName() + " = " + primaryKeyValue + "\n";
}
index++;
}
Record record = new Record();
record.setPrimaryKeyCellMap(transaction.getPrimaryKey());
record.setTransactionType(transaction.getType());
try {
resultSet = statement.executeQuery(query);
Mediator.getLogger(RecordMiner.class.getName()).log(Level.FINER, query);
Map<Column, String> columnMap;
if (resultSet.next()) {
columnMap = new LinkedHashMap<Column, String>();
for (Column column : recordSource.getColumnList()) {
columnMap.put(column, resultSet.getString(column.getName()));
}
record.setOrdinaryCellMap(columnMap);
} else {
return null;
}
} finally {
if (createStatementHere) {