mondrian.olap
Class ConnectionBase

java.lang.Object
  extended by mondrian.olap.ConnectionBase
All Implemented Interfaces:
Connection
Direct Known Subclasses:
RolapConnection

public abstract class ConnectionBase
extends java.lang.Object
implements Connection

ConnectionBase implements some of the methods in Connection.

Since:
6 August, 2001
Version:
$Id: //open/mondrian/src/main/mondrian/olap/ConnectionBase.java#29 $
Author:
jhyde

Constructor Summary
protected ConnectionBase()
           
 
Method Summary
 java.lang.String getFullConnectString()
           
protected abstract  org.apache.log4j.Logger getLogger()
           
static void memoryUsageNotification(Query query, java.lang.String msg)
           
 Exp parseExpression(java.lang.String expr)
          Parses an expresion.
 Query parseQuery(java.lang.String query)
          Parses a query.
 Query parseQuery(java.lang.String query, boolean load)
           
 Query parseQuery(java.lang.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, setRole
 

Constructor Detail

ConnectionBase

protected ConnectionBase()
Method Detail

memoryUsageNotification

public static void memoryUsageNotification(Query query,
                                           java.lang.String msg)

getLogger

protected abstract org.apache.log4j.Logger getLogger()

getFullConnectString

public java.lang.String getFullConnectString()

parseQuery

public Query parseQuery(java.lang.String query)
Description copied from interface: Connection
Parses a query.

Specified by:
parseQuery in interface Connection

parseQuery

public Query parseQuery(java.lang.String query,
                        boolean load)

parseQuery

public Query parseQuery(java.lang.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:
query - MDX query that requires special parsing
funTable - Customized function table to use in parsing
strictValidation - If true, do not ignore invalid members
Returns:
Query the corresponding Query object if parsing is successful
Throws:
MondrianException - if parsing fails

parseExpression

public Exp parseExpression(java.lang.String expr)
Description copied from interface: Connection
Parses an expresion.

Specified by:
parseExpression in interface Connection

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads