mondrian.rolap
Class RolapNativeSql.FunCallSqlCompilerBase

java.lang.Object
  extended by mondrian.rolap.RolapNativeSql.FunCallSqlCompilerBase
All Implemented Interfaces:
RolapNativeSql.SqlCompiler
Direct Known Subclasses:
RolapNativeSql.FunCallSqlCompiler, RolapNativeSql.IifSqlCompiler, RolapNativeSql.InfixOpSqlCompiler, RolapNativeSql.IsEmptySqlCompiler
Enclosing class:
RolapNativeSql

abstract class RolapNativeSql.FunCallSqlCompilerBase
extends Object
implements RolapNativeSql.SqlCompiler

contains utility methods to compile FunCall expressions into SQL.

Since:
Nov 23, 2005
Author:
av

Field Summary
(package private)  int argCount
           
(package private)  int category
           
(package private)  String mdx
           
 
Constructor Summary
RolapNativeSql.FunCallSqlCompilerBase(int category, String mdx, int argCount)
           
 
Method Summary
protected  String[] compileArgs(Exp exp, RolapNativeSql.SqlCompiler compiler)
          compiles the arguments of a FunCall
protected  boolean match(Exp exp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface mondrian.rolap.RolapNativeSql.SqlCompiler
compile
 

Field Detail

category

int category

mdx

String mdx

argCount

int argCount
Constructor Detail

RolapNativeSql.FunCallSqlCompilerBase

RolapNativeSql.FunCallSqlCompilerBase(int category,
                                      String mdx,
                                      int argCount)
Method Detail

match

protected boolean match(Exp exp)
Returns:
true if exp is a matching FunCall

compileArgs

protected String[] compileArgs(Exp exp,
                               RolapNativeSql.SqlCompiler compiler)
compiles the arguments of a FunCall

Returns:
array of expressions or null if either exp does not match or any argument could not be compiled.

SourceForge.net_Logo