|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jasperreports.engine.query.JRAbstractQueryExecuter
net.sf.jasperreports.engine.query.JRXPathQueryExecuter
public class JRXPathQueryExecuter
XPath query executer implementation.
The XPath query of the report is executed against the document specified by thePARAMETER_XML_DATA_DOCUMENT
parameter.
All the paramters in the XPath query are replaced by calling String.valueOf(Object)
on the parameter value.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.sf.jasperreports.engine.query.JRAbstractQueryExecuter |
|---|
JRAbstractQueryExecuter.QueryParameter |
| Field Summary |
|---|
| Fields inherited from class net.sf.jasperreports.engine.query.JRAbstractQueryExecuter |
|---|
CLAUSE_POSITION_ID, clauseFunctions, dataset |
| Constructor Summary | |
|---|---|
JRXPathQueryExecuter(JRDataset dataset,
java.util.Map parametersMap)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class net.sf.jasperreports.engine.query.JRAbstractQueryExecuter |
|---|
addQueryMultiParameters, addQueryParameter, appendClauseChunk, appendParameterChunk, appendParameterClauseChunk, appendQueryChunk, appendTextChunk, applyClause, checkParameter, getCollectedParameterNames, getCollectedParameters, getParameter, getParameterValue, getParameterValue, getQueryString, getValueParameter, getValueParameter, parseQuery, registerClauseFunction, resolveFunction, unregisterClauseFunction |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JRXPathQueryExecuter(JRDataset dataset,
java.util.Map parametersMap)
| Method Detail |
|---|
protected java.lang.String getParameterReplacement(java.lang.String parameterName)
JRAbstractQueryExecuter
getParameterReplacement in class JRAbstractQueryExecuterparameterName - the paramter name
JRQueryChunk.TYPE_PARAMETER
public JRDataSource createDatasource()
throws JRException
JRQueryExecuterJRDataSource out of the result.
JRDataSource wrapping the query execution result.
JRExceptionpublic void close()
JRQueryExecutercreateDatasource.
public boolean cancelQuery()
throws JRException
JRQueryExecuter
true if and only if the query was running and it has been canceled
JRException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||