Package ecar.pojo

Examples of ecar.pojo.SisAtributoSatb


        List pesquisa = super.pesquisar(atributo, new String[] {"descricaoSatb","asc"});
        List retorno = new ArrayList();
        if(pesquisa.size() > 0){
            Iterator it = pesquisa.iterator();
            while(it.hasNext()){
                 SisAtributoSatb atb = (SisAtributoSatb) it.next();
                 if(segmento.getSisGrupoAtributoSga() != null && atb.getSisGrupoAtributoSga().equals(segmento.getSisGrupoAtributoSga()))
                     retorno.add(atb);                
            }          
        }
        return pesquisa;
     }
View Full Code Here


      List pesquisa = super.pesquisar(atributo, new String[] {"descricaoSatb","asc"});
      List retorno = new ArrayList();
        if(pesquisa.size() > 0){
          Iterator it = pesquisa.iterator();
          while(it.hasNext()){
            SisAtributoSatb atb = (SisAtributoSatb) it.next();
                if(atb.getSisGrupoAtributoSga().getIndTabelaUsoSga().equals(indTabelaUso))
                  retorno.add(atb);                
            }          
        }
        return retorno;
    }
View Full Code Here

     * @param sisGrupoAtributoSga
     * @param descricaoSatb
     * @return
     */
    public SisAtributoSatb getSisAtributoSatb(SisGrupoAtributoSga sisGrupoAtributoSga, String descricaoSatb) throws ECARException{
      SisAtributoSatb sisAtributoSatb = null;
      try {
        StringBuffer hql = new StringBuffer();
      hql.append("select sisAtributoSatb from SisAtributoSatb sisAtributoSatb ");
      hql.append("where sisAtributoSatb.sisGrupoAtributoSga.codSga = :codSga and ");
      hql.append("sisAtributoSatb.descricaoSatb = :descricaoSatb");
View Full Code Here

    private void criarCollectionEditorias(SegmentoItemSgti segItem, List campos) throws ECARException{
        try{
            Object[] codigosEditorias = FileUpload.verificaValorCampoArray(campos, "editoriasSisAtributoSatb");
            segItem.setSegmentoSisAtribSgtsas(new HashSet());
            for(int i = 0; i < codigosEditorias.length; i++){
                SisAtributoSatb atributo = (SisAtributoSatb) super.buscar(SisAtributoSatb.class, Long.valueOf(codigosEditorias[i].toString()));
                 segItem.getSegmentoSisAtribSgtsas().add(atributo);
            }           
        } catch(Exception e){
          this.logger.error(e);
            throw new ECARException(e);
View Full Code Here

    private void criarCollectionTipoAcesso(SegmentoItemSgti segItem, List campos) throws ECARException{
        try{
            Object[] codigosTpAcesso = FileUpload.verificaValorCampoArray(campos, "tpAcessoSisAtributoSatb");
            segItem.setSegmentoItemTpacesSgtitas(new HashSet());
            for(int i = 0; i < codigosTpAcesso.length; i++){
                SisAtributoSatb atributo = (SisAtributoSatb) super.buscar(SisAtributoSatb.class, Long.valueOf(codigosTpAcesso[i].toString()));
                 segItem.getSegmentoItemTpacesSgtitas().add(atributo);
            }           
        } catch(Exception e){
          this.logger.error(e);
            throw new ECARException(e);
View Full Code Here

    private void criarCollectionEditoriasPesquisa(SegmentoItemSgti segItem, HttpServletRequest campos) throws ECARException{
        try{
            Object[] codigosEditorias = campos.getParameterValues("editoriasSisAtributoSatb");
            segItem.setSegmentoSisAtribSgtsas(new HashSet());
            for(int i = 0; i < codigosEditorias.length; i++){
                SisAtributoSatb atributo = (SisAtributoSatb) super.buscar(SisAtributoSatb.class, Long.valueOf(codigosEditorias[i].toString()));
                 segItem.getSegmentoSisAtribSgtsas().add(atributo);
            }           
        } catch(Exception e){
          this.logger.error(e);
            throw new ECARException(e);
View Full Code Here

    private void criarCollectionTipoAcessoPesquisa(SegmentoItemSgti segItem, HttpServletRequest campos) throws ECARException{
        try{
            Object[] codigosTpAcesso = campos.getParameterValues("tpAcessoSisAtributoSatb");
            segItem.setSegmentoItemTpacesSgtitas(new HashSet());
            for(int i = 0; i < codigosTpAcesso.length; i++){
                SisAtributoSatb atributo = (SisAtributoSatb) super.buscar(SisAtributoSatb.class, Long.valueOf(codigosTpAcesso[i].toString()));
                 segItem.getSegmentoItemTpacesSgtitas().add(atributo);
            }           
        } catch(Exception e){
          this.logger.error(e);
            throw new ECARException(e);
View Full Code Here

      atributos.addAll(segItem.getSegmentoItemTpacesSgtitas());
     
      Iterator it = atributos.iterator();
     
      while(it.hasNext()){
        SisAtributoSatb atb = (SisAtributoSatb) it.next();
        lista.add(atb.getCodSatb());
      }
     
      return lista;
    }
View Full Code Here

        atributos.addAll(segItem.getSegmentoSisAtribSgtsas());
     
      Iterator it = atributos.iterator();
     
      while(it.hasNext()){
        SisAtributoSatb atb = (SisAtributoSatb) it.next();
        lista.add(atb.getCodSatb());
      }
     
      return lista;
    }
View Full Code Here

                  Set atb = sgti.getSegmentoSisAtribSgtsas();
                  
                  if ((atb != null)&& !(atb.isEmpty())) {
                    Iterator itAtb = atb.iterator();             
                    while(itAtb.hasNext()){
                      SisAtributoSatb atributo = (SisAtributoSatb) itAtb.next();
                      
                      String[] codSatb = editoria.split(",");
                        for (int i=0; i < codSatb.length; i++)  {
                          if (atributo.getCodSatb().equals(Long.valueOf(codSatb[i]))) {
                             ret.add(sgti);
                          }
                        }
                      }
                    }
View Full Code Here

TOP

Related Classes of ecar.pojo.SisAtributoSatb

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.