Package br.gov.serpro.ouvidoria.model

Examples of br.gov.serpro.ouvidoria.model.PersistentObject


      SubOrgaoCtrl subOrgaoCtrl = new SubOrgaoCtrl(getDaoFactory());
      lista = subOrgaoCtrl.listarTodosSubOrgaos(getOrgao(request));
    } else {
      Comparator ordem = new Comparator() {
        public int compare(Object obj1, Object obj2) {
          PersistentObject pobj1 = (PersistentObject) obj1;
          PersistentObject pobj2 = (PersistentObject) obj2;
          if (pobj1 != null && pobj1.getDescricao() != null) {
            return pobj1.getDescricao().compareTo(
                pobj2.getDescricao());
          }
          return 0;
        }
      };
      lista = new TreeSet(ordem);
View Full Code Here


      object.setConsultor(null);
    }

    Comparator ordem = new Comparator() {
      public int compare(Object obj1, Object obj2) {
        PersistentObject pobj1 = (PersistentObject) obj1;
        PersistentObject pobj2 = (PersistentObject) obj2;
        if (pobj1 != null && pobj1.getDescricao() != null) {
          return pobj1.getDescricao().compareTo(pobj2.getDescricao());
        }
        return 0;
      }
    };
View Full Code Here

          funcionarioForm.getLocalidades(),
          LocalidadeOcorrencia.class));

      Comparator ordem = new Comparator() {
        public int compare(Object obj1, Object obj2) {
          PersistentObject pobj1 = (PersistentObject) obj1;
          PersistentObject pobj2 = (PersistentObject) obj2;
          if (pobj1 != null && pobj1.getDescricao() != null) {
            return pobj1.getDescricao().compareTo(
                pobj2.getDescricao());
          }
          return 0;
        }
      };
View Full Code Here

            if ( funcionario.getNivelAtuacao() == Funcionario.NA_ORGAO) {
                assuntos = orgao.getListaAssuntosSubOrgaos()
            } else {
                Comparator ordem = new Comparator() {
                    public int compare(Object obj1, Object obj2) {
                        PersistentObject pobj1 = (PersistentObject) obj1;
                        PersistentObject pobj2 = (PersistentObject) obj2;
                        if (pobj1 != null && pobj1.getDescricao() != null) {
                            return pobj1.getDescricao().compareTo(pobj2.getDescricao());
                        }
                        return 0;
                    }
                };
View Full Code Here

TOP

Related Classes of br.gov.serpro.ouvidoria.model.PersistentObject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.