Package org.pentaho.reporting.engine.classic.core.sorting

Examples of org.pentaho.reporting.engine.classic.core.sorting.SortOrderReportPreProcessor


  public void testSorting() throws ResourceException
  {
    URL url = getClass().getResource("crosstab-sorting.prpt");
    MasterReport report = (MasterReport) new ResourceManager().createDirectly(url, MasterReport.class).getResource();
    report.setAutoSort(true);
    SortOrderReportPreProcessor p = new SortOrderReportPreProcessor();
    List<SortConstraint> sortConstraints = p.computeSortConstraints(report.getReportFooter().getSubReport(0));
    List<SortConstraint> expectedSortConstraints = new ArrayList<SortConstraint>();
    expectedSortConstraints.add(new SortConstraint("year", true));
    expectedSortConstraints.add(new SortConstraint("month", true));
    Assert.assertEquals(expectedSortConstraints, sortConstraints);
    DebugReportRunner.execGraphics2D(report);
View Full Code Here


      dataFactory.initialize(new DesignTimeDataFactoryContext(masterReport));

      try
      {
        List<SortConstraint> sortConstraints = new SortOrderReportPreProcessor().computeSortConstraints(parent);
        final TableModel reportData = queryReportData
            (parent.getQuery(), parent.getQueryTimeout(), dataFactory, sortConstraints);
        final DataSchema dataSchema = dataSchemaCompiler.compile
            (reportData, expressions, parameterRow, parameterDefinitions, masterReport.getReportEnvironment());
        // this.columnNames = collectColumnNames(reportData, parameterRow, expressions);
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.sorting.SortOrderReportPreProcessor

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.