Package ecar.pojo

Examples of ecar.pojo.VisaoDemandasGrpAcesso


      List<VisaoDemandasGrpAcesso> visoesGrpAcessoRemocao = new ArrayList<VisaoDemandasGrpAcesso>();
     
      // definindo os para inclusao
      Iterator<VisaoDemandasGrpAcesso> iterator = null;
      boolean existe = false;
      VisaoDemandasGrpAcesso visaoGrpAcesso  = null;
      if (visoes != null){
        for(int i=0;i<visoes.length;i++) {
          iterator = visoesGrpAcesso.iterator();
          while(iterator.hasNext()) {
            visaoGrpAcesso  = iterator.next();
            if (new Long(visoes[i]).equals(visaoGrpAcesso.getVisaoDemandasGrpAcessoPk().getVisao().getCodVisao())) {
              existe = true
              break;
            }
          }
          if(!existe) {
            visaoGrpAcesso = new VisaoDemandasGrpAcesso();
            VisaoDemandasGrpAcessoPK visaoGrpAcessoPk = new VisaoDemandasGrpAcessoPK();
            SisAtributoSatb sis = new SisAtributoSatb();
            sis.setCodSatb(codSatb);
            visaoGrpAcessoPk.setSisAtributo(sis);
            VisaoDemandasVisDem visao = new VisaoDemandasVisDem();
            visao.setCodVisao(new Long(visoes[i]));
            visaoGrpAcessoPk.setVisao(visao);
            visaoGrpAcesso.setVisaoDemandasGrpAcessoPk(visaoGrpAcessoPk);
            visoesGrpAcessoInsercao.add(visaoGrpAcesso);
          } else {
            existe = false;
          }

        }
      }

      // definindo os para exclusao
      iterator = visoesGrpAcesso.iterator();
      boolean naoExiste = true;
      while(iterator.hasNext()) {
        visaoGrpAcesso  = iterator.next();
        if (visoes != null){
          for(int i=0;i<visoes.length;i++) {
            if (new Long(visoes[i]).equals(visaoGrpAcesso.getVisaoDemandasGrpAcessoPk().getVisao().getCodVisao())) {
              naoExiste = false
              break;
            }
          }
        }
View Full Code Here


        visao.setVisaoSituacaoDemandas(null);
       
        if (visao.getVisoesGrpAcesso() != null) {
          Iterator itVisoesDemandas = visao.getVisoesGrpAcesso().iterator();
          while (itVisoesDemandas.hasNext()) {
            VisaoDemandasGrpAcesso visaoDemandas = (VisaoDemandasGrpAcesso) itVisoesDemandas.next();
            objs.add(visaoDemandas);
          }
        }
        visao.setVisoesGrpAcesso(null);
                       
View Full Code Here

TOP

Related Classes of ecar.pojo.VisaoDemandasGrpAcesso

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.