cstmt = conn.prepareCall("exec listarContasAPagar");
ResultSet rs = cstmt.executeQuery();
while(rs.next()){
ContasAPagar c2 = new ContasAPagar();
c2.setCodigo(rs.getString(1));
c2.setPedidoCompraId(rs.getInt(2));
c2.setNumParcelas(rs.getInt(3));
c2.setValor(rs.getFloat(4));
lista.add(c2);
}
cstmt.close();