mondrian.rolap
Class RolapNativeSql.IifSqlCompiler

java.lang.Object
  extended by mondrian.rolap.RolapNativeSql.FunCallSqlCompilerBase
      extended by mondrian.rolap.RolapNativeSql.IifSqlCompiler
All Implemented Interfaces:
RolapNativeSql.SqlCompiler
Enclosing class:
RolapNativeSql

 class RolapNativeSql.IifSqlCompiler
extends RolapNativeSql.FunCallSqlCompilerBase

Compiles an IIF(cond, val1, val2) expression into SQL CASE WHEN cond THEN val1 ELSE val2 END.


Field Summary
(package private)  RolapNativeSql.SqlCompiler valueCompiler
           
 
Fields inherited from class mondrian.rolap.RolapNativeSql.FunCallSqlCompilerBase
argCount, category, mdx
 
Constructor Summary
RolapNativeSql.IifSqlCompiler(int category, RolapNativeSql.SqlCompiler valueCompiler)
           
 
Method Summary
 java.lang.String compile(Exp exp)
           
 
Methods inherited from class mondrian.rolap.RolapNativeSql.FunCallSqlCompilerBase
compileArgs, match
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

valueCompiler

RolapNativeSql.SqlCompiler valueCompiler
Constructor Detail

RolapNativeSql.IifSqlCompiler

RolapNativeSql.IifSqlCompiler(int category,
                              RolapNativeSql.SqlCompiler valueCompiler)
Method Detail

compile

public java.lang.String compile(Exp exp)

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