Book Image

Pentaho 8 Reporting for Java Developers

By : Jasmine Kaur, Francesco Corti
Book Image

Pentaho 8 Reporting for Java Developers

By: Jasmine Kaur, Francesco Corti

Overview of this book

This hands-on tutorial, filled with exercises and examples, introduces the reader to a variety of concepts within Pentaho Reporting. With screenshots that show you how reports look at design time as well as how they should look when rendered as PDF, Excel, HTML, Text, Rich-Text-File, XML, and CSV, this book also contains complete example source code that you can copy and paste into your environment to get up-and-running quickly. Updated to cover the features of Pentaho 8, this book will teach you everything you need to know to build fast, efficient reports using Pentaho. If your interest lies in the technical details of creating reports and you want to see how to solve common reporting problems with a minimum of fuss, this is the book for you.
Table of Contents (25 chapters)
Title Page
Credits
About the Author
About the Reviewers
www.PacktPub.com
Customer Feedback
Dedication
Preface

Pentaho Reporting Engine Data API


The Pentaho Reporting Engine Data API is a simple API that describes how Pentaho Reporting accesses data to populate reports. In this section, you will learn about the core interfaces of the API. All the individual implementations discussed later in this chapter implement this API.

There are two main Java interfaces related to the Pentaho Reporting Engine Data API. The first interface you will learn about is org.pentaho.reporting.engine.classic.core.DataFactory. The primary purpose of the DataFactory interface is to generate an object that implements the javax.swing.table.TableModel interface. The TableModel interface is a very simple API for accessing two-dimensional cell data. These two simple APIs are combined to manage all data input into Pentaho Reporting.

To implement your own Java data source for the Pentaho Reporting Engine, all you need to do is implement the DataFactory and TableModel interfaces. But most likely, you will be able to take advantage...