public class JRXmlaQueryExecuter extends JRAbstractQueryExecuter
JRAbstractQueryExecuter.QueryParameter
CLAUSE_POSITION_ID, clauseFunctions, dataset
Constructor and Description |
---|
JRXmlaQueryExecuter(JRDataset dataset,
java.util.Map parametersMap) |
Modifier and Type | Method and Description |
---|---|
protected void |
addParameterList(javax.xml.soap.SOAPEnvelope envelope,
javax.xml.soap.SOAPElement eParent,
java.lang.String typeName,
java.lang.String listName,
java.util.Map 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 javax.xml.soap.SOAPMessage |
createQueryMessage() |
protected javax.xml.soap.SOAPConnection |
createSOAPConnection() |
protected javax.xml.soap.SOAPMessage |
executeQuery(javax.xml.soap.SOAPMessage message,
java.net.URL url)
Sends the SOAP Message over the connection and returns the
Result-SOAP-Message
|
protected java.lang.String |
getParameterReplacement(java.lang.String parameterName)
Returns the replacement text for a query paramter.
|
protected java.lang.String |
getSoapUrl() |
protected void |
handleCellErrors(java.util.Iterator errorElems) |
protected void |
handleHierInfo(JRXmlaResultAxis axis,
javax.xml.soap.SOAPElement hierInfoElement) |
protected void |
handleResultFault(javax.xml.soap.SOAPFault fault) |
protected void |
handleTupleElement(JRXmlaResultAxis axis,
javax.xml.soap.SOAPElement tupleElement) |
protected void |
handleTuplesElement(JRXmlaResultAxis axis,
javax.xml.soap.SOAPElement tuplesElement) |
protected void |
parseAxesElement(javax.xml.soap.SOAPElement axesElement) |
protected void |
parseAxesInfoElement(javax.xml.soap.SOAPElement axesInfoElement) |
protected void |
parseCellDataElement(javax.xml.soap.SOAPElement cellDataElement) |
protected void |
parseOLAPInfoElement(javax.xml.soap.SOAPElement olapInfoElement) |
protected void |
parseResult(javax.xml.soap.SOAPMessage reply)
Parses the result-Message into this class's structure
|
addQueryMultiParameters, addQueryParameter, appendClauseChunk, appendParameterChunk, appendParameterClauseChunk, appendQueryChunk, appendTextChunk, applyClause, checkParameter, getCollectedParameterNames, getCollectedParameters, getParameter, getParameterValue, getParameterValue, getQueryString, getValueParameter, getValueParameter, parseQuery, registerClauseFunction, resolveFunction, unregisterClauseFunction
public JRXmlaQueryExecuter(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
protected java.lang.String getSoapUrl() throws java.net.MalformedURLException
java.net.MalformedURLException
public boolean cancelQuery() throws JRException
JRQueryExecuter
true
if and only if the query was running and it has been canceledJRException
public void close()
JRQueryExecuter
createDatasource
.protected javax.xml.soap.SOAPConnection createSOAPConnection()
protected javax.xml.soap.SOAPMessage createQueryMessage()
protected void addParameterList(javax.xml.soap.SOAPEnvelope envelope, javax.xml.soap.SOAPElement eParent, java.lang.String typeName, java.lang.String listName, java.util.Map params) throws javax.xml.soap.SOAPException
javax.xml.soap.SOAPException
protected javax.xml.soap.SOAPMessage executeQuery(javax.xml.soap.SOAPMessage message, java.net.URL url)
protected void parseResult(javax.xml.soap.SOAPMessage reply) throws javax.xml.soap.SOAPException
reply
- The reply-Message from the Serverjavax.xml.soap.SOAPException
protected void handleResultFault(javax.xml.soap.SOAPFault fault)
protected void parseOLAPInfoElement(javax.xml.soap.SOAPElement olapInfoElement) throws javax.xml.soap.SOAPException
javax.xml.soap.SOAPException
protected void parseAxesInfoElement(javax.xml.soap.SOAPElement axesInfoElement) throws javax.xml.soap.SOAPException
javax.xml.soap.SOAPException
protected void parseAxesElement(javax.xml.soap.SOAPElement axesElement) throws javax.xml.soap.SOAPException
javax.xml.soap.SOAPException
protected void parseCellDataElement(javax.xml.soap.SOAPElement cellDataElement) throws javax.xml.soap.SOAPException
javax.xml.soap.SOAPException
protected void handleCellErrors(java.util.Iterator errorElems) throws javax.xml.soap.SOAPException
javax.xml.soap.SOAPException
protected void handleHierInfo(JRXmlaResultAxis axis, javax.xml.soap.SOAPElement hierInfoElement) throws javax.xml.soap.SOAPException
javax.xml.soap.SOAPException
protected void handleTuplesElement(JRXmlaResultAxis axis, javax.xml.soap.SOAPElement tuplesElement) throws javax.xml.soap.SOAPException
javax.xml.soap.SOAPException
protected void handleTupleElement(JRXmlaResultAxis axis, javax.xml.soap.SOAPElement tupleElement) throws javax.xml.soap.SOAPException
javax.xml.soap.SOAPException
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com