public class JRXPathQueryExecuter extends JRAbstractQueryExecuter
PARAMETER_XML_DATA_DOCUMENT
parameter.
All the paramters in the XPath query are replaced by calling String.valueOf(Object)
on the parameter value.JRAbstractQueryExecuter.QueryParameter
CLAUSE_POSITION_ID, clauseFunctions, dataset
Constructor and Description |
---|
JRXPathQueryExecuter(JRDataset dataset,
java.util.Map parametersMap) |
Modifier and Type | Method and Description |
---|---|
boolean |
cancelQuery()
Cancels the query if it's currently running.
|
void |
close()
Closes resources kept open during the data source iteration.
|
JRDataSource |
createDatasource()
Executes the query and creates a
JRDataSource out of the result. |
protected java.lang.String |
getParameterReplacement(java.lang.String parameterName)
Returns the replacement text for a query paramter.
|
addQueryMultiParameters, addQueryParameter, appendClauseChunk, appendParameterChunk, appendParameterClauseChunk, appendQueryChunk, appendTextChunk, applyClause, checkParameter, getCollectedParameterNames, getCollectedParameters, getParameter, getParameterValue, getParameterValue, getQueryString, getValueParameter, getValueParameter, parseQuery, registerClauseFunction, resolveFunction, unregisterClauseFunction
public JRXPathQueryExecuter(JRDataset dataset, java.util.Map parametersMap)
protected java.lang.String getParameterReplacement(java.lang.String parameterName)
JRAbstractQueryExecuter
getParameterReplacement
in class JRAbstractQueryExecuter
parameterName
- the paramter nameJRQueryChunk.TYPE_PARAMETER
public JRDataSource createDatasource() throws JRException
JRQueryExecuter
JRDataSource
out of the result.JRDataSource
wrapping the query execution result.JRException
public void close()
JRQueryExecuter
createDatasource
.public boolean cancelQuery() throws JRException
JRQueryExecuter
true
if and only if the query was running and it has been canceledJRException
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com