net.sf.jasperreports.engine
Interface JRQuery

All Known Implementing Classes:
JRBaseQuery, JRDesignQuery

public interface JRQuery

Represents a query used for generation of report data.

Based on the query language, query executer implementations are used to retrieve the data and create a JRDataSource to be used by the filling process.

When using the default SQL connection data source, an SQL query must also be provided for JasperReports to automatically retrieve the data. For SQL queries, a very important aspect is that column names in the result set obtained from the query must match the field names defined in the report template.

Version:
$Id: JRQuery.java 1229 2006-04-19 13:27:35 +0300 (Wed, 19 Apr 2006) teodord $
Author:
Teodor Danciu (teodord@users.sourceforge.net)
See Also:
JRQueryExecuterFactory

Method Summary
 JRQueryChunk[] getChunks()
           
 java.lang.String getLanguage()
          Returns the query language.
 java.lang.String getText()
          Returns the query string.
 

Method Detail

getChunks

JRQueryChunk[] getChunks()

getText

java.lang.String getText()
Returns the query string.


getLanguage

java.lang.String getLanguage()
Returns the query language.

Based on the query language, a corresponding JRQueryExecuterFactory is used to create a JRQueryExecuter instance. The query executer is responsible for executing the query and creating a JRDataSource from the result.

Returns:
the query language


© 2001-2006 JasperSoft Corporation www.jaspersoft.com