/** * Transforma os dados obtidos atraves de uma consulta a tabela de fatos do prestador em um objeto * do tipo ResumoFato * * @param rset - um ResultSet contendo o resultado da consulta a tabela de fatos do prestador * @return um objeto do tipo ResumoFato */ private static final ResumoFato montaResumoFato(ResultSet rset) throws SQLException { /* double qtdeNotas; String strCodServico; String strDsServico; double qtdeServico; double valorTotal; strCodServico = rset.getString("pef_codigo"); strDsServico = rset.getString("Descricao"); qtdeNotas = rset.getDouble("QtdeNotas"); qtdeServico = rset.getDouble("QtdeServicos"); valorTotal = rset.getDouble("ValorTotal"); return ( new ResumoFato(qtdeNotas, strCodServico, strDsServico, qtdeServico, valorTotal) );*/ int tipoNota = 0; int qtdeNotas = 0; int tipoRegistro = 0; double valorTotal = 0; tipoNota = rset.getInt("tipo_nota"); tipoRegistro = rset.getInt("tipo_registro"); qtdeNotas = rset.getInt("qtde_notas"); valorTotal = rset.getDouble("valor_total"); return (new ResumoFato(tipoNota, tipoRegistro, qtdeNotas, valorTotal)); } // montaResumoFato()