public class Olap4jXmlaQueryExecuter extends JRAbstractQueryExecuter
JRAbstractQueryExecuter.QueryParameter, JRAbstractQueryExecuter.QueryParameterEntry, JRAbstractQueryExecuter.QueryParameterVisitor, JRAbstractQueryExecuter.ValuedQueryParameter, JRAbstractQueryExecuter.VisitExceptionWrapper| Modifier and Type | Field and Description |
|---|---|
static String |
OLAP4J_DRIVER |
static String |
OLAP4J_URL_PREFIX |
static String |
OLAP4J_XMLA_DRIVER_CLASS |
static String |
OLAP4J_XMLA_URL_PREFIX |
static String |
XMLA_CATALOG |
static String |
XMLA_DATA_SOURCE |
static String |
XMLA_PASSWORD |
static String |
XMLA_SERVER |
static String |
XMLA_USER |
CLAUSE_POSITION_ID, clauseFunctions, dataset| Constructor and Description |
|---|
Olap4jXmlaQueryExecuter(JasperReportsContext jasperReportsContext,
JRDataset dataset,
Map<String,? extends JRValueParameter> 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 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.
|
protected void |
handleCellErrors(org.olap4j.Cell currentCell) |
protected void |
handleHierInfo(JRXmlaResultAxis xmlaAxis,
org.olap4j.CellSetAxisMetaData axisMetaData) |
protected void |
handlePosition(JRXmlaResultAxis axis,
org.olap4j.CellSetAxis itAxisElement,
org.olap4j.Position p) |
protected void |
parseAxes(org.olap4j.CellSet result) |
protected void |
parseCellDataElement(org.olap4j.CellSet result) |
protected void |
parseResult(org.olap4j.CellSet result)
Parses the result into this class's structure
|
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 static final String OLAP4J_DRIVER
public static final String OLAP4J_URL_PREFIX
public static final String XMLA_SERVER
public static final String XMLA_CATALOG
public static final String XMLA_DATA_SOURCE
public static final String XMLA_USER
public static final String XMLA_PASSWORD
public static final String OLAP4J_XMLA_DRIVER_CLASS
public static final String OLAP4J_XMLA_URL_PREFIX
public Olap4jXmlaQueryExecuter(JasperReportsContext jasperReportsContext, JRDataset dataset, Map<String,? extends JRValueParameter> parametersMap)
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 JRDataSource createDatasource() throws JRException
JRQueryExecuterJRDataSource out of the result.JRDataSource wrapping the query execution result.JRExceptionpublic boolean cancelQuery()
throws JRException
JRQueryExecutertrue if and only if the query was running and it has been canceledJRExceptionpublic void close()
JRQueryExecutercreateDatasource.protected void parseResult(org.olap4j.CellSet result)
throws JRException
result - The CellSet query resultJRExceptionprotected void parseAxes(org.olap4j.CellSet result)
protected void parseCellDataElement(org.olap4j.CellSet result)
throws JRException
JRExceptionprotected void handleCellErrors(org.olap4j.Cell currentCell)
throws JRException
JRExceptionprotected void handleHierInfo(JRXmlaResultAxis xmlaAxis, org.olap4j.CellSetAxisMetaData axisMetaData)
protected void handlePosition(JRXmlaResultAxis axis, org.olap4j.CellSetAxis itAxisElement, org.olap4j.Position p)
Copyright © 2015. All rights reserved.