public void checkSave() throws ServletException { save = save % 10; if (save == 0) { DBHandler.saveState(this); } save++; return; /* try { * seems we don't need this } catch(SQLException ex) {dbgApp("SQLException: " + ex.getMessage());} */ }
public void clearMapElem(String key, SessionState ss) { HashMap<String, Integer> listMap = new HashMap<String, Integer>(); if (map == null) return; else { map.remove(key); allMapValuesToCSV(ss); // used to display all of the values in the HashMaps stored in ss.map map.put(key, listMap); DBHandler.updateDBList(this.userID, key, "", this); allMapValuesToCSV(ss); // used to display all of the values in the HashMaps stored in ss.map } }