mappingStmt.setString(1, mapping);
mappingStmt.setString(2, user);
mappingStmt.setString(3, domain);
if (mappingStmt.executeUpdate() < 1) {
throw new RecipientRewriteTableException("Mapping not found");
}
} finally {
theJDBCUtil.closeJDBCResultSet(mappingRS);
}
} catch (SQLException sqle) {
getLogger().error("Error accessing database", sqle);
throw new RecipientRewriteTableException("Error accessing database", sqle);
} finally {
theJDBCUtil.closeJDBCStatement(mappingStmt);
theJDBCUtil.closeJDBCConnection(conn);
}
}