if (curriculum.getGeneralObjectives() == null || curriculum.getGeneralObjectives().length() < objectivosGerais.length()) { curriculum.setGeneralObjectives(objectivosGerais); } if (curriculum.getOperacionalObjectives() == null || curriculum.getOperacionalObjectives().length() < objectivosOP.length()) { curriculum.setOperacionalObjectives(objectivosOP); } if (curriculum.getProgram() == null || curriculum.getProgram().length() < programa.length()) { curriculum.setProgram(programa); }  return curriculum;
System.out.println( "update de todas as  disciplinas curriculares efectuado");  Query notInQuery = new QueryByCriteria(Curr_licenciatura.class,notInCrit); Collection siglaCurricularCoursesNotInFenix = broker.getCollectionByQuery(notInQuery); Iterator notInIter = siglaCurricularCoursesNotInFenix.iterator(); System.out.println("Lista de disciplinas curriculares que esto no Sigla e no no Fnix:"); while (notInIter.hasNext()) { Curr_licenciatura curr_licenciatura = (Curr_licenciatura) notInIter.next(); System.out.println(curr_licenciatura.getCodigo_disc()+"-"+curr_licenciatura.getNome_disc()); System.out.println("Licenciatura:" +curr_licenciatura.getCodigo_lic()); System.out.println("ano curricular:" +curr_licenciatura.getAno_curricular()); System.out.println("ano lectivo:" +curr_licenciatura.getAno_lectivo()+" - semestre:"+curr_licenciatura.getSemestre());  }
	private ICurriculum updateCurriculum(		ICurriculum curriculum,		List siglaCurricularCourses,		PersistenceBroker broker) {		String objectivosOP = "";		String objectivosGerais = "";		String programa = "";		Iterator iter = siglaCurricularCourses.iterator();		while (iter.hasNext()) {			Curr_licenciatura siglaCurricularCourse =				(Curr_licenciatura) iter.next();			if (siglaCurricularCourse.getObjectivos() != null				&& siglaCurricularCourse.getObjectivos().length()					>= objectivosGerais.length()) {				objectivosGerais = siglaCurricularCourse.getObjectivos();			}			if (siglaCurricularCourse.getObjectivos_op() != null				&& siglaCurricularCourse.getObjectivos_op().length()					>= objectivosOP.length()) {				objectivosOP = siglaCurricularCourse.getObjectivos_op();			}			if (siglaCurricularCourse.getProgr_res() != null				&& siglaCurricularCourse.getProgr_res().length()					>= programa.length()) {				programa = siglaCurricularCourse.getProgr_res();			}		}		if (curriculum.getGeneralObjectives() == null			|| curriculum.getGeneralObjectives().length()				< objectivosGerais.length()) {			curriculum.setGeneralObjectives(objectivosGerais);		}		if (curriculum.getOperacionalObjectives() == null			|| curriculum.getOperacionalObjectives().length()				< objectivosOP.length()) {			curriculum.setOperacionalObjectives(objectivosOP);		}		if (curriculum.getProgram() == null			|| curriculum.getProgram().length() < programa.length()) {			curriculum.setProgram(programa);		}		return curriculum;	}