Package ecar.pojo

Examples of ecar.pojo.RegApontamentoRegda


    if ("dataRegda".equals(aptCampo)) {
      if ("asc".equals(aptOrdem)) {
        Collections.sort(lista,
          new Comparator() {
                public int compare(Object o1, Object o2) {
                  RegApontamentoRegda regA1 = (RegApontamentoRegda) o1;
                  RegApontamentoRegda regA2 = (RegApontamentoRegda) o2;
                  //Quando a data est� nula, foi utilizado um artif�cio para n�o ocorrer Exception
                  if (regA1.getDataRegda() != null) {
                    if (regA2.getDataRegda() != null) {
                      return regA1.getDataRegda().compareTo( regA2.getDataRegda() );
                    } else {
                      return "a".compareTo("");
                    }
                  } else {
                    if (regA2.getDataRegda() != null) {
                      return "".compareTo("a");
                    } else {
                      return "".compareTo("");
                    }
                  }
                }
            } );
        } else {
          Collections.sort(lista,
            new Comparator() {
                public int compare(Object o1, Object o2) {
                  RegApontamentoRegda regA1 = (RegApontamentoRegda) o1;
                  RegApontamentoRegda regA2 = (RegApontamentoRegda) o2;
                  //Quando a data est� nula, foi utilizado um artif�cio para n�o ocorrer Exception
                  if (regA1.getDataRegda() != null) {
                    if (regA2.getDataRegda() != null) {
                      return - (regA1.getDataRegda().compareTo( regA2.getDataRegda() ));
                    } else {
                      return - ("a".compareTo(""));
                    }
                  } else {
                    if (regA2.getDataRegda() != null) {
                      return - ("".compareTo("a"));
                    } else {
                      return - ("".compareTo(""));
                    }
                  }
View Full Code Here


        super.inicializarLogBean();

            tx = session.beginTransaction();

          for (int i = 0; i < codigosParaExcluir.length; i++) {
              RegApontamentoRegda regApontamento = (RegApontamentoRegda) buscar(RegApontamentoRegda.class, Long.valueOf(codigosParaExcluir[i]));
              session.delete(regApontamento);
        objetos.add(regApontamento);
          }
     
      tx.commit();
View Full Code Here

             
                if (regDemanda.getRegApontamentoRegdas() != null
                      && regDemanda.getRegApontamentoRegdas().size() > 0) {
                  Iterator it = regDemanda.getRegApontamentoRegdas().iterator();
                  while (it.hasNext()) {
                    RegApontamentoRegda regAp = (RegApontamentoRegda) it.next();
                    exclusao.add(regAp);
                  }
                }
               
                if (regDemanda.getDemAtributoDemas() != null) {
View Full Code Here

             
              Iterator listaApontamentosIt = listaApontamentos.iterator();

              //Para cada apontamento criar a linha
              while(listaApontamentosIt.hasNext()) {
                RegApontamentoRegda regApontamento = (RegApontamentoRegda) listaApontamentosIt.next();
                linha = montaLinhasApontamentosComCamposOrdenados(regDemanda, regApontamento, atributosOrdenados.size());
                //escreve linha no arquivo .txt
                linha = Util.normalizaCaracterMarcador(linha);
                arquivo.write(linha.getBytes(Dominios.ENCODING_DEFAULT));
                arquivo.flush();
View Full Code Here

TOP

Related Classes of ecar.pojo.RegApontamentoRegda

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.