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

Since:
Nov 23, 2005
Author:
av
 

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
 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 String compile(Exp exp)

SourceForge.net_Logo