Package net.sf.jasperreports.engine
Interface JRQuery
-
- All Superinterfaces:
java.lang.Cloneable,JRCloneable
- All Known Implementing Classes:
JRBaseQuery,JRDesignQuery
public interface JRQuery extends JRCloneable
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 aJRDataSourceto 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.- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
QueryExecuterFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JRQueryChunk[]getChunks()java.lang.StringgetLanguage()Returns the query language.java.lang.StringgetText()Returns the query string.-
Methods inherited from interface net.sf.jasperreports.engine.JRCloneable
clone
-
-
-
-
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 correspondingQueryExecuterFactoryis used to create aJRQueryExecuterinstance. The query executer is responsible for executing the query and creating aJRDataSourcefrom the result.- Returns:
- the query language
-
-