epeoplechanged = false;
epeopleChanged = false; }   if (groupsChanged) {  DatabaseManager.updateQuery(myContext, "delete from group2group where parent_id=" + getID());   Iterator i = groups.iterator();  while (i.hasNext()) { Group g = (Group) i.next();  TableRow mappingRow = DatabaseManager.create(myContext, "group2group"); mappingRow.setColumn("parent_id", getID()); mappingRow.setColumn("child_id", g.getID()); DatabaseManager.update(myContext, mappingRow); }   rethinkGroupCache();  groupsChanged = false;
    public void update() throws SQLException, AuthorizeException    {        // FIXME: Check authorisation        DatabaseManager.update(myContext, myRow);        // Redo eperson mappings if they've changed        if (epeoplechanged)        {            // Remove any existing mappings            DatabaseManager.updateQuery(myContext,                    "delete from epersongroup2eperson where eperson_group_id="                            + getID());            // Add new mappings            Iterator i = epeople.iterator();            while (i.hasNext())            {                EPerson e = (EPerson) i.next();                TableRow mappingRow = DatabaseManager.create(myContext,                        "epersongroup2eperson");                mappingRow.setColumn("eperson_id", e.getID());                mappingRow.setColumn("eperson_group_id", getID());                DatabaseManager.update(myContext, mappingRow);            }            epeoplechanged = false;        }        log.info(LogManager.getHeader(myContext, "update_group", "group_id="                + getID()));    }