Package mondrian.olap
Class ConnectionBase
- java.lang.Object
-
- mondrian.olap.ConnectionBase
-
- All Implemented Interfaces:
Connection
- Direct Known Subclasses:
RolapConnection
public abstract class ConnectionBase extends Object implements Connection
ConnectionBase
implements some of the methods inConnection
.- Since:
- 6 August, 2001
- Author:
- jhyde
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ConnectionBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected MdxParserValidator
createParser()
String
getFullConnectString()
abstract Statement
getInternalStatement()
protected abstract org.apache.logging.log4j.Logger
getLogger()
Query
parseQuery(String query)
Parses a query.QueryPart
parseStatement(Statement statement, String query, FunTable funTable, boolean strictValidation)
Parses a query, with specified function table and the mode for strict validation(if true then invalid members are not ignored).-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface mondrian.olap.Connection
close, execute, getCacheControl, getCatalogName, getConnectString, getDataSource, getLocale, getProperty, getRole, getSchema, getSchemaReader, parseExpression, parseStatement, setRole
-
-
-
-
Method Detail
-
getLogger
protected abstract org.apache.logging.log4j.Logger getLogger()
-
getFullConnectString
public String getFullConnectString()
-
getInternalStatement
public abstract Statement getInternalStatement()
-
parseQuery
public Query parseQuery(String query)
Description copied from interface:Connection
Parses a query.- Specified by:
parseQuery
in interfaceConnection
-
parseStatement
public QueryPart parseStatement(Statement statement, String query, FunTable funTable, boolean strictValidation)
Parses a query, with specified function table and the mode for strict validation(if true then invalid members are not ignored).This method is only used in testing and by clients that need to support customized parser behavior. That is why this method is not part of the Connection interface.
See test case mondrian.olap.CustomizedParserTest.
- Parameters:
statement
- Evaluation contextquery
- MDX query that requires special parsingfunTable
- Customized function table to use in parsingstrictValidation
- If true, do not ignore invalid members- Returns:
- Query the corresponding Query object if parsing is successful
- Throws:
MondrianException
- if parsing fails
-
createParser
protected MdxParserValidator createParser()
-
-