public class JRXmlaQueryExecuter extends JRAbstractQueryExecuter
JRAbstractQueryExecuter.QueryParameter, JRAbstractQueryExecuter.QueryParameterEntry, JRAbstractQueryExecuter.QueryParameterVisitor, JRAbstractQueryExecuter.ValuedQueryParameter, JRAbstractQueryExecuter.VisitExceptionWrapperCLAUSE_POSITION_ID, clauseFunctions, dataset| Constructor and Description |
|---|
JRXmlaQueryExecuter(JasperReportsContext jasperReportsContext,
JRDataset dataset,
Map<String,? extends JRValueParameter> parametersMap) |
JRXmlaQueryExecuter(JRDataset dataset,
Map<String,? extends JRValueParameter> parametersMap)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addParameterList(SOAPEnvelope envelope,
SOAPElement eParent,
String typeName,
String listName,
Map<String,String> params) |
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 SOAPMessage |
createQueryMessage() |
protected SOAPConnection |
createSOAPConnection() |
protected SOAPMessage |
executeQuery(SOAPMessage message,
URL url)
Sends the SOAP Message over the connection and returns the
Result-SOAP-Message
|
protected String |
getCanonicalQueryLanguage()
Returns a canonical query language for this query executer implementation.
|
protected String |
getParameterReplacement(String parameterName)
Returns the replacement text for a query parameter.
|
JROlapResult |
getResult() |
protected String |
getSoapUrl() |
protected void |
handleCellErrors(Iterator<?> errorElems) |
protected void |
handleHierInfo(JRXmlaResultAxis axis,
SOAPElement hierInfoElement) |
protected void |
handleResultFault(SOAPFault fault) |
protected void |
handleTupleElement(JRXmlaResultAxis axis,
SOAPElement tupleElement) |
protected void |
handleTuplesElement(JRXmlaResultAxis axis,
SOAPElement tuplesElement) |
protected void |
parseAxesElement(SOAPElement axesElement) |
protected void |
parseAxesInfoElement(SOAPElement axesInfoElement) |
protected void |
parseCellDataElement(SOAPElement cellDataElement) |
protected void |
parseOLAPInfoElement(SOAPElement olapInfoElement) |
protected void |
parseResult(SOAPMessage reply)
Parses the result-Message into this class's structure
|
protected String |
prettyPrintSOAP(SOAPElement element) |
addQueryMultiParameters, addQueryMultiParameters, addQueryParameter, addQueryParameter, appendClauseChunk, appendParameterChunk, appendParameterClauseChunk, appendQueryChunk, appendTextChunk, applyClause, checkParameter, findExtensionQueryFunction, getBooleanParameter, getBooleanParameter, getBooleanParameterOrProperty, getBooleanParameterOrProperty, getCollectedParameterNames, getCollectedParameters, getJasperReportsContext, getParameter, getParameterValue, getParameterValue, getPropertiesUtil, getQueryString, getStringParameter, getStringParameterOrProperty, getValueParameter, getValueParameter, parameterHasValue, parseQuery, registerClauseFunction, resolveFunction, unregisterClauseFunction, visitQueryParameterspublic JRXmlaQueryExecuter(JasperReportsContext jasperReportsContext, JRDataset dataset, Map<String,? extends JRValueParameter> parametersMap)
public JRXmlaQueryExecuter(JRDataset dataset, Map<String,? extends JRValueParameter> parametersMap)
JRXmlaQueryExecuter(JasperReportsContext, JRDataset, Map).protected String getCanonicalQueryLanguage()
JRAbstractQueryExecuterThe canonical language is used to retrieve extensions for the query executer.
The default implementation returns the runtime query language used in the dataset, but query executer implementations should override this method and return a fixed language.
getCanonicalQueryLanguage in class JRAbstractQueryExecuterprotected String getParameterReplacement(String parameterName)
JRAbstractQueryExecutergetParameterReplacement in class JRAbstractQueryExecuterparameterName - the parameter nameJRQueryChunk.TYPE_PARAMETERpublic JROlapResult getResult()
public JRDataSource createDatasource() throws JRException
JRQueryExecuterJRDataSource out of the result.JRDataSource wrapping the query execution result.JRExceptionprotected String getSoapUrl() throws MalformedURLException
MalformedURLExceptionpublic boolean cancelQuery()
throws JRException
JRQueryExecutertrue if and only if the query was running and it has been canceledJRExceptionpublic void close()
JRQueryExecutercreateDatasource.protected SOAPConnection createSOAPConnection()
protected SOAPMessage createQueryMessage()
protected void addParameterList(SOAPEnvelope envelope, SOAPElement eParent, String typeName, String listName, Map<String,String> params) throws SOAPException
SOAPExceptionprotected SOAPMessage executeQuery(SOAPMessage message, URL url)
protected void parseResult(SOAPMessage reply) throws SOAPException
reply - The reply-Message from the ServerSOAPExceptionprotected void handleResultFault(SOAPFault fault)
protected void parseOLAPInfoElement(SOAPElement olapInfoElement) throws SOAPException
SOAPExceptionprotected void parseAxesInfoElement(SOAPElement axesInfoElement) throws SOAPException
SOAPExceptionprotected void parseAxesElement(SOAPElement axesElement) throws SOAPException
SOAPExceptionprotected void parseCellDataElement(SOAPElement cellDataElement) throws SOAPException
SOAPExceptionprotected void handleCellErrors(Iterator<?> errorElems) throws SOAPException
SOAPExceptionprotected void handleHierInfo(JRXmlaResultAxis axis, SOAPElement hierInfoElement) throws SOAPException
SOAPExceptionprotected void handleTuplesElement(JRXmlaResultAxis axis, SOAPElement tuplesElement) throws SOAPException
SOAPExceptionprotected void handleTupleElement(JRXmlaResultAxis axis, SOAPElement tupleElement) throws SOAPException
SOAPExceptionprotected String prettyPrintSOAP(SOAPElement element)
Copyright © 2015. All rights reserved.