public class Olap4jXmlaQueryExecuter extends JRAbstractQueryExecuter
JRAbstractQueryExecuter.QueryParameter, JRAbstractQueryExecuter.QueryParameterEntry, JRAbstractQueryExecuter.QueryParameterVisitor, JRAbstractQueryExecuter.ValuedQueryParameter, JRAbstractQueryExecuter.VisitExceptionWrapper
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXCEPTION_MESSAGE_KEY_CONNECTION_ERROR |
static java.lang.String |
EXCEPTION_MESSAGE_KEY_EXECUTE_QUERY_ERROR |
static java.lang.String |
OLAP4J_DRIVER |
static java.lang.String |
OLAP4J_URL_PREFIX |
static java.lang.String |
OLAP4J_XMLA_DRIVER_CLASS |
static java.lang.String |
OLAP4J_XMLA_URL_PREFIX |
static java.lang.String |
XMLA_CATALOG |
static java.lang.String |
XMLA_DATA_SOURCE |
static java.lang.String |
XMLA_PASSWORD |
static java.lang.String |
XMLA_SERVER |
static java.lang.String |
XMLA_USER |
CLAUSE_POSITION_ID, clauseFunctions, dataset, EXCEPTION_MESSAGE_KEY_NUMERIC_TYPE_REQUIRED, EXCEPTION_MESSAGE_KEY_PARAMETER_NOT_FOUND, EXCEPTION_MESSAGE_KEY_QUERY_CLAUSE_CIRCULARLY_NESTED_PARAMETER, EXCEPTION_MESSAGE_KEY_QUERY_CLAUSE_ID_FIRST_TOKEN_MISSING, EXCEPTION_MESSAGE_KEY_QUERY_CLAUSE_NOT_FOUND, EXCEPTION_MESSAGE_KEY_UNSUPPORTED_PARAMETER_TYPE, GET_COLLECTED
Constructor and Description |
---|
Olap4jXmlaQueryExecuter(JasperReportsContext jasperReportsContext,
JRDataset dataset,
java.util.Map<java.lang.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 java.lang.String |
getCanonicalQueryLanguage()
Returns a canonical query language for this query executer implementation.
|
protected java.lang.String |
getParameterReplacement(java.lang.String parameterName)
Returns the replacement text for a query parameter.
|
protected void |
handleCellErrors(Cell currentCell) |
protected void |
handleHierInfo(JRXmlaResultAxis xmlaAxis,
CellSetAxisMetaData axisMetaData) |
protected void |
handlePosition(JRXmlaResultAxis axis,
CellSetAxis itAxisElement,
Position p) |
protected void |
parseAxes(CellSet result) |
protected void |
parseCellDataElement(CellSet result) |
protected void |
parseResult(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, visitQueryParameters
public static final java.lang.String EXCEPTION_MESSAGE_KEY_CONNECTION_ERROR
public static final java.lang.String EXCEPTION_MESSAGE_KEY_EXECUTE_QUERY_ERROR
public static final java.lang.String OLAP4J_DRIVER
public static final java.lang.String OLAP4J_URL_PREFIX
public static final java.lang.String XMLA_SERVER
public static final java.lang.String XMLA_CATALOG
public static final java.lang.String XMLA_DATA_SOURCE
public static final java.lang.String XMLA_USER
public static final java.lang.String XMLA_PASSWORD
public static final java.lang.String OLAP4J_XMLA_DRIVER_CLASS
public static final java.lang.String OLAP4J_XMLA_URL_PREFIX
public Olap4jXmlaQueryExecuter(JasperReportsContext jasperReportsContext, JRDataset dataset, java.util.Map<java.lang.String,? extends JRValueParameter> parametersMap)
protected java.lang.String getCanonicalQueryLanguage()
JRAbstractQueryExecuter
The 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 JRAbstractQueryExecuter
protected java.lang.String getParameterReplacement(java.lang.String parameterName)
JRAbstractQueryExecuter
getParameterReplacement
in class JRAbstractQueryExecuter
parameterName
- the parameter nameJRQueryChunk.TYPE_PARAMETER
public JRDataSource createDatasource() throws JRException
JRQueryExecuter
JRDataSource
out of the result.JRDataSource
wrapping the query execution result.JRException
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 void parseResult(CellSet result) throws JRException
result
- The CellSet query resultJRException
protected void parseAxes(CellSet result)
protected void parseCellDataElement(CellSet result) throws JRException
JRException
protected void handleCellErrors(Cell currentCell) throws JRException
JRException
protected void handleHierInfo(JRXmlaResultAxis xmlaAxis, CellSetAxisMetaData axisMetaData)
protected void handlePosition(JRXmlaResultAxis axis, CellSetAxis itAxisElement, Position p)
© 2001-2014 TIBCO Software Inc. www.jaspersoft.com