Package org.saiku.olap.query

Examples of org.saiku.olap.query.IQuery


    return dimsel;
  }

  @NotNull
  public SaikuDimensionSelection getAxisDimensionSelections(String queryName, String axis, String dimension) {
    IQuery query = getIQuery(queryName);
    try {
      QueryAxis qaxis = query.getAxis(axis);
      if (qaxis != null) {
        QueryDimension dim = query.getDimension(dimension);
        if (dim != null) {
          return ObjectUtil.convertDimensionSelection(dim, query);
        } else {
          throw new SaikuOlapException("Cannot find dimension with name:" + dimension);
        }
View Full Code Here


      throw new SaikuServiceException("Cannot get dimension selections", e);
    }
  }

  public void clearQuery(String queryName) {
    IQuery query = getIQuery(queryName);
    query.clearAllQuerySelections();
  }
View Full Code Here

    query.clearAllQuerySelections();
  }

  public IQuery clearAxis(String queryName, String axisName) {
    try {
      IQuery query = getIQuery(queryName);
      query.clearAxis(axisName);
      return query;
    } catch (SaikuOlapException e) {
      throw new SaikuServiceException("Cannot clear for query: " + queryName + " axis: " + axisName, e);
    }
  }
View Full Code Here

      throw new SaikuServiceException("Cannot clear for query: " + queryName + " axis: " + axisName, e);
    }
  }

  public void clearAxisSelections(String queryName, String axisName) {
    IQuery query = getIQuery(queryName);
    if (Axis.Standard.valueOf(axisName) != null) {
      QueryAxis qAxis = query.getAxis(Axis.Standard.valueOf(axisName));
      query.resetAxisSelections(qAxis);
    }
  }
View Full Code Here

      query.resetAxisSelections(qAxis);
    }
  }

  public void sortAxis(String queryName, String axisName, String sortLiteral, String sortOrder) {
    IQuery query = getIQuery(queryName);
    if (Axis.Standard.valueOf(axisName) != null) {
      QueryAxis qAxis = query.getAxis(Axis.Standard.valueOf(axisName));
      SortOrder so = SortOrder.valueOf(sortOrder);
      qAxis.sort(so, sortLiteral);
    }
  }
View Full Code Here

      qAxis.sort(so, sortLiteral);
    }
  }

  public void clearSort(String queryName, String axisName) {
    IQuery query = getIQuery(queryName);
    if (Axis.Standard.valueOf(axisName) != null) {
      QueryAxis qAxis = query.getAxis(Axis.Standard.valueOf(axisName));
      qAxis.clearSort();
    }
  }
View Full Code Here

      qAxis.clearSort();
    }
  }

  public void limitAxis(String queryName, String axisName, String limitFunction, String n, String sortLiteral) {
    IQuery query = getIQuery(queryName);
    if (Axis.Standard.valueOf(axisName) != null) {
      QueryAxis qAxis = query.getAxis(Axis.Standard.valueOf(axisName));
      LimitFunction lf = LimitFunction.valueOf(limitFunction);
      BigDecimal bn = new BigDecimal(n);
      qAxis.limit(lf, bn, sortLiteral);
    }
  }
View Full Code Here

      qAxis.limit(lf, bn, sortLiteral);
    }
  }

  public void clearLimit(String queryName, String axisName) {
    IQuery query = getIQuery(queryName);
    if (Axis.Standard.valueOf(axisName) != null) {
      QueryAxis qAxis = query.getAxis(Axis.Standard.valueOf(axisName));
      qAxis.clearLimitFunction();
    }
  }
View Full Code Here

      qAxis.clearLimitFunction();
    }
  }

  public void filterAxis(String queryName, String axisName, String filterCondition) {
    IQuery query = getIQuery(queryName);
    if (Axis.Standard.valueOf(axisName) != null) {
      QueryAxis qAxis = query.getAxis(Axis.Standard.valueOf(axisName));
      qAxis.filter(filterCondition);
    }
  }
View Full Code Here

      qAxis.filter(filterCondition);
    }
  }

  public void clearFilter(String queryName, String axisName) {
    IQuery query = getIQuery(queryName);
    if (Axis.Standard.valueOf(axisName) != null) {
      QueryAxis qAxis = query.getAxis(Axis.Standard.valueOf(axisName));
      qAxis.clearFilter();
    }
  }
View Full Code Here

TOP

Related Classes of org.saiku.olap.query.IQuery

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.