Examples of paginate()


Examples of com.jfinal.plugin.activerecord.Model.paginate()

            sqlExceptSelect += " order by " + sorterField + " " + pageInfo.getSorterDirection();
        }
        // select = select.substring(0, select.length());
        if (pageInfoInterceptor.relations().isEmpty()) {
            Model modelInstance = Reflect.on(model).create().get();
            return modelInstance.paginate(pageInfo.getPageNumber(), pageInfo.getPageSize(), select, sqlExceptSelect,
                    paras.toArray(new Object[] {}));
        } else {
            return Db.paginate(pageInfo.getPageNumber(), pageInfo.getPageSize(), select, sqlExceptSelect,
                    paras.toArray(new Object[] {}));
        }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.output.pageable.base.PageableReportProcessor.paginate()

    final Resource directly = resourceManager.createDirectly(url, MasterReport.class);
    final MasterReport resource = (MasterReport) directly.getResource();

    final PageableReportProcessor p = new
        PageableReportProcessor(resource, new GraphicsOutputProcessor(resource.getConfiguration()));
    p.paginate();

    // if you return 1, then your datasource is f'd up.
    assertTrue( p.getPhysicalPageCount() > 10 );
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.PrintReportProcessor.paginate()

    resourceManager.registerDefaults();
    final Resource directly = resourceManager.createDirectly(url, MasterReport.class);
    final MasterReport report = (MasterReport) directly.getResource();

    PrintReportProcessor p = new PrintReportProcessor(report);
    p.paginate();
    assertTrue(p.isPaginated());
    assertFalse(p.isError());

    final PageDrawable pageDrawable = p.getPageDrawable(1);
   
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.PrintReportProcessor.paginate()

    resourceManager.registerDefaults();
    final Resource directly = resourceManager.createDirectly(url, MasterReport.class);
    final MasterReport report = (MasterReport) directly.getResource();

    final PrintReportProcessor p = new PrintReportProcessor(report);
    p.paginate();
    assertFalse(p.isError());
    assertTrue(p.isPaginated());
    assertTrue(p.getNumberOfPages() > 58);
  }
}
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.