Examples of SaikuServiceException


Examples of org.saiku.service.util.exception.SaikuServiceException

      final OlapConnection con = olapDiscoverService.getNativeConnection(getQuery(queryName).getCube().getConnection());
      stmt = con.createStatement();
      ResultSet rs = stmt.executeQuery(drillthroughMdx);
      return rs;
    } catch (SQLException e) {
      throw new SaikuServiceException("Error DRILLTHROUGH: " + queryName + " DRILLTHROUGH MDX:" + drillthroughMdx, e);
    } finally {
      try {
        if (stmt != null) {
          stmt.close();
        }
View Full Code Here

Examples of org.saiku.service.util.exception.SaikuServiceException

        mdx += "\r\n RETURN " + returns;
      }
      ResultSet rs = stmt.executeQuery(mdx);
      return rs;
    } catch (SQLException e) {
      throw new SaikuServiceException("Error DRILLTHROUGH: " + queryName, e);
    } finally {
      try {
        if (stmt != null) {
          stmt.close();
        }
View Full Code Here

Examples of org.saiku.service.util.exception.SaikuServiceException

      LOG.debug("Drill Through for query (" + queryName + ") : \r\n" + select);
      ResultSet rs = stmt.executeQuery(select);
      return rs;
    } catch (Exception e) {
      throw new SaikuServiceException("Error DRILLTHROUGH: " + queryName, e);
    } finally {
      try {
        if (stmt != null) {
          stmt.close();
        }
View Full Code Here

Examples of org.saiku.service.util.exception.SaikuServiceException

      }

      ResultSet rs = stmt.executeQuery(mdx);
      return CsvExporter.exportCsv(rs);
    } catch (SQLException e) {
      throw new SaikuServiceException("Error DRILLTHROUGH: " + queryName, e);
    } finally {
      try {
        if (stmt != null) {
          stmt.close();
        }
View Full Code Here

Examples of org.saiku.service.util.exception.SaikuServiceException

      AllocationPolicy ap = AllocationPolicy.valueOf(allocationPolicy);
      CellSet cs = query.getCellset();
      cs.getCell(position).setValue(v, ap);
      con.setScenario(null);
    } catch (Exception e) {
      throw new SaikuServiceException("Error setting value: " + queryName, e);
    }


  }
View Full Code Here

Examples of org.saiku.service.util.exception.SaikuServiceException

    try {
      Selection sel = dimension.createSelection(Operator.CHILDREN, memberList);
      dimension.getInclusions().add(sel);
      return true;
    } catch (OlapException e) {
      throw new SaikuServiceException(
          "Cannot include children query (" + queryName + ") dimension (" + dimensionName + ") member ("
          + uniqueMemberName + ")", e);
    }
  }
View Full Code Here

Examples of org.saiku.service.util.exception.SaikuServiceException

      if (dimension.getInclusions().contains(sel)) {
        dimension.getInclusions().remove(sel);
      }
      return true;
    } catch (OlapException e) {
      throw new SaikuServiceException(
          "Cannot remove children query (" + queryName + ") dimension (" + dimensionName + ") member ("
          + uniqueMemberName + ")", e);
    }
  }
View Full Code Here

Examples of org.saiku.service.util.exception.SaikuServiceException

        }
      }
      dimension.getInclusions().removeAll(children);
      return true;
    } catch (Exception e) {
      throw new SaikuServiceException(
          "Cannot remove all children  for query (" + queryName + ") dimension (" + dimensionName + ")", e);
    }
  }
View Full Code Here

Examples of org.saiku.service.util.exception.SaikuServiceException

      }
      dimension.getInclusions().add(memberposition, sel);
      query.setTotalFunction(((Member) sel.getRootElement()).getLevel().getUniqueName(), totalsFunction);
      return true;
    } catch (OlapException e) {
      throw new SaikuServiceException(
          "Cannot include member query (" + queryName + ") dimension (" + dimensionName + ") member ("
          + uniqueMemberName + ") operator (" + selectionType + ") position " + memberposition, e);
    }
  }
View Full Code Here

Examples of org.saiku.service.util.exception.SaikuServiceException

      }
      Selection selection = dimension.createSelection(selectionMode, memberList);
      dimension.getInclusions().remove(selection);
      return true;
    } catch (OlapException e) {
      throw new SaikuServiceException(
          "Error removing member (" + uniqueMemberName + ") of dimension (" + dimensionName + ")", e);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.