String uid=r.getUID();
UID uid=r.getUID();
  protected boolean updateRouteElements(Statement s, Route r){    boolean ret=false;    try{      String uid=r.getUID();      Iterator iter=r.getSegmentLocIDIterator();      //Go through and create segments w/ start end from linear list:      int elemNum=0;      String lastLoc=null;      while(iter.hasNext()){	String locUID=(String)iter.next();	if(lastLoc==null){	  lastLoc=locUID;	}else{	  StringBuffer sb=new StringBuffer();	  sb.append("INSERT INTO ");	  sb.append(getTableName(ROUTE_ELEMENTS_TABLE));	  sb.append(" (");	  sb.append(COL_ROUTEID);sb.append(",");	  sb.append(COL_STARTLOC);sb.append(",");	  sb.append(COL_ENDLOC);sb.append(",");	  sb.append(COL_ROUTE_ELEM_NUM);	  sb.append(") VALUES('");	  sb.append(uid);sb.append("','");	  sb.append(lastLoc);sb.append("','");	  sb.append(locUID);sb.append("',");	  sb.append(elemNum);	  sb.append(")");	  ret|=(s.executeUpdate(sb.toString())==1);	  lastLoc=locUID;	  elemNum++;	}      }    }catch(SQLException e){      haltForError(Logger.DB_WRITE,"Could not update table("+		   getTableName(ROUTE_ELEMENTS_TABLE)+")",e);      return false;    }    return ret;  }