public void flush(){
            LinkedList<PlayerReinforcement> toSave = new LinkedList<PlayerReinforcement>();
            LinkedList<PlayerReinforcement> toDelete = new LinkedList<PlayerReinforcement>();
            for (PlayerReinforcement pr : pendingDbUpdate) {
                if (pr.getDbAction() == DbUpdateAction.DELETE) {
                    toDelete.add(pr);
                } else {  // INSERT or SAVE
                    toSave.add(pr);
                }
                pr.setDbAction(DbUpdateAction.NONE);
            }
            pendingDbUpdate.clear();
            if (toSave.size() > 0) {
                dao.addCounterReinforcementsSaved(
                    AttemptSave(toSave));
            }
            if (toDelete.size() > 0) {
                dao.addCounterReinforcementsDeleted(
                    AttemptDelete(toDelete));
            }
        }