try {
statement = getConnection().createStatement();
resultSet = statement.executeQuery(query);
Mediator.getLogger(TransactionMiner.class.getName()).log(Level.FINER, query);
while (resultSet.next()) {
Transaction transaction = new Transaction(resultSet.getInt("id"), resultSet.getString("table_name"),
TransactionType.valueOf(resultSet.getString("type")));
transactionMap.put(transaction.getId(), transaction);
}
} catch (SQLException ex) {
throw ex;
} finally {
if (statement != null) {