public void remove(Connection connection, String storeId, String destination) throws SQLException, JMSException
{
final QueryRunner runner = new QueryRunner();
if (runner.update(connection, "delete from messages where messageid in (select messageid from stores where storeid=? and destination=?)", new Object[] {
storeId, destination }) > 0)
{
runner.update(connection, "delete from stores where storeid=? and destination=?", new Object[] { storeId, destination });
}
}