Class JRDesignQuery
- java.lang.Object
-
- net.sf.jasperreports.engine.base.JRBaseQuery
-
- net.sf.jasperreports.engine.design.JRDesignQuery
-
- All Implemented Interfaces:
Serializable
,Cloneable
,JRChangeEventsSupport
,JRCloneable
,JRQuery
public class JRDesignQuery extends JRBaseQuery implements JRChangeEventsSupport
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<JRQueryChunk>
chunks
static String
PROPERTY_LANGUAGE
static String
PROPERTY_TEXT
-
Fields inherited from class net.sf.jasperreports.engine.base.JRBaseQuery
language
-
-
Constructor Summary
Constructors Constructor Description JRDesignQuery()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChunk(JRDesignQueryChunk chunk)
void
addClauseChunk(String[] tokens, char tokenSeparator)
Adds aclause chunk
to the query.void
addParameterChunk(String text)
void
addParameterClauseChunk(String text)
void
addPropertyChangeListener(PropertyChangeListener l)
Add a property listener to listen to all properties of this class.void
addPropertyChangeListener(String propName, PropertyChangeListener l)
Add a property listener to receive property change events for only one specific property.void
addTextChunk(String text)
protected JRQueryChunkHandler
chunkAdder()
Object
clone()
JRQueryChunk[]
getChunks()
JRPropertyChangeSupport
getEventSupport()
Returns the property change support object for this instance.protected PropertyChangeSupport
getPropertyChangeSupport()
Get the property change support object for this class.void
removePropertyChangeListener(PropertyChangeListener l)
Remove a property change listener registered for all properties.void
removePropertyChangeListener(String propName, PropertyChangeListener l)
Remove a property change listener registered for a specific property.void
setChunks(List<JRQueryChunk> chunks)
void
setLanguage(String language)
Sets the query language.void
setText(String text)
-
Methods inherited from class net.sf.jasperreports.engine.base.JRBaseQuery
getLanguage, getText
-
-
-
-
Field Detail
-
PROPERTY_LANGUAGE
public static final String PROPERTY_LANGUAGE
- See Also:
- Constant Field Values
-
PROPERTY_TEXT
public static final String PROPERTY_TEXT
- See Also:
- Constant Field Values
-
chunks
protected List<JRQueryChunk> chunks
-
-
Method Detail
-
getChunks
public JRQueryChunk[] getChunks()
- Specified by:
getChunks
in interfaceJRQuery
- Overrides:
getChunks
in classJRBaseQuery
-
setChunks
public void setChunks(List<JRQueryChunk> chunks)
-
addChunk
public void addChunk(JRDesignQueryChunk chunk)
-
addTextChunk
public void addTextChunk(String text)
-
addParameterChunk
public void addParameterChunk(String text)
-
addParameterClauseChunk
public void addParameterClauseChunk(String text)
-
addClauseChunk
public void addClauseChunk(String[] tokens, char tokenSeparator)
Adds aclause chunk
to the query.- Parameters:
tokens
- the clause tokenstokenSeparator
- the token separator character- See Also:
JRDesignQueryChunk.setTokens(String[])
,JRQueryChunk.PROPERTY_CHUNK_TOKEN_SEPARATOR
-
chunkAdder
protected JRQueryChunkHandler chunkAdder()
-
setText
public void setText(String text)
-
setLanguage
public void setLanguage(String language)
Sets the query language.- Parameters:
language
- the query language- See Also:
JRQuery.getLanguage()
-
getEventSupport
public JRPropertyChangeSupport getEventSupport()
Description copied from interface:JRChangeEventsSupport
Returns the property change support object for this instance.- Specified by:
getEventSupport
in interfaceJRChangeEventsSupport
- Returns:
- the property change support object for this instance
-
getPropertyChangeSupport
protected PropertyChangeSupport getPropertyChangeSupport()
Get the property change support object for this class. Because the property change support object has to be transient, it may need to be created.- Returns:
- the property change support object.
-
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener l)
Add a property listener to listen to all properties of this class.- Parameters:
l
- The property listener to add.- See Also:
removePropertyChangeListener(PropertyChangeListener)
-
addPropertyChangeListener
public void addPropertyChangeListener(String propName, PropertyChangeListener l)
Add a property listener to receive property change events for only one specific property.- Parameters:
propName
- The property to listen to.l
- The property listener to add.- See Also:
removePropertyChangeListener(String, PropertyChangeListener)
-
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener l)
Remove a property change listener registered for all properties. This will only remove listeners that were added through theaddPropertyChangeListener(PropertyChangeListener)
method.- Parameters:
l
- The listener to remove.
-
removePropertyChangeListener
public void removePropertyChangeListener(String propName, PropertyChangeListener l)
Remove a property change listener registered for a specific property.- Parameters:
propName
- The property to listen to.l
- The listener to remove.
-
clone
public Object clone()
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classJRBaseQuery
-
-