Package net.sf.jasperreports.engine.base
Class JRBaseQuery
- java.lang.Object
-
- net.sf.jasperreports.engine.base.JRBaseQuery
-
- All Implemented Interfaces:
Serializable
,Cloneable
,JRCloneable
,JRQuery
- Direct Known Subclasses:
JRDesignQuery
public class JRBaseQuery extends Object implements JRQuery, Serializable
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
JRBaseQuery()
protected
JRBaseQuery(JRQuery query, JRBaseObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
JRQueryChunk[]
getChunks()
String
getLanguage()
Returns the query language.String
getText()
Returns the query string.
-
-
-
Field Detail
-
language
protected String language
-
-
Constructor Detail
-
JRBaseQuery
protected JRBaseQuery()
-
JRBaseQuery
protected JRBaseQuery(JRQuery query, JRBaseObjectFactory factory)
-
-
Method Detail
-
getChunks
public JRQueryChunk[] getChunks()
-
getText
public String getText()
Description copied from interface:JRQuery
Returns the query string.
-
getLanguage
public String getLanguage()
Description copied from interface:JRQuery
Returns the query language. Based on the query language, a correspondingQueryExecuterFactory
is used to create aJRQueryExecuter
instance. The query executer is responsible for executing the query and creating aJRDataSource
from the result.- Specified by:
getLanguage
in interfaceJRQuery
- Returns:
- the query language
-
clone
public Object clone()
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classObject
-
-