net.sf.jasperreports.engine.base
Class JRBaseQuery

java.lang.Object
  extended by 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

Version:
$Id: JRBaseQuery.java 5180 2012-03-29 13:23:12Z teodord $
Author:
Teodor Danciu (teodord@users.sourceforge.net)
See Also:
Serialized Form

Field Summary
protected  String language
           
 
Constructor Summary
protected JRBaseQuery()
           
protected JRBaseQuery(JRQuery query, JRBaseObjectFactory factory)
           
 
Method Summary
 Object clone()
           
 JRQueryChunk[] getChunks()
           
 String getLanguage()
          Returns the query language.
 String getText()
          Returns the query string.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

language

protected String language
Constructor Detail

JRBaseQuery

protected JRBaseQuery()

JRBaseQuery

protected JRBaseQuery(JRQuery query,
                      JRBaseObjectFactory factory)
Method Detail

getChunks

public JRQueryChunk[] getChunks()
Specified by:
getChunks in interface JRQuery

getText

public String getText()
Description copied from interface: JRQuery
Returns the query string.

Specified by:
getText in interface JRQuery

getLanguage

public String getLanguage()
Description copied from interface: JRQuery
Returns the query language.

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

Specified by:
getLanguage in interface JRQuery
Returns:
the query language

clone

public Object clone()
Specified by:
clone in interface JRCloneable
Overrides:
clone in class Object


Copyright © 2012. All Rights Reserved.