Package mondrian.rolap
Class RolapNativeSql.IifSqlCompiler
- java.lang.Object
-
- mondrian.rolap.RolapNativeSql.FunCallSqlCompilerBase
-
- mondrian.rolap.RolapNativeSql.IifSqlCompiler
-
- All Implemented Interfaces:
RolapNativeSql.SqlCompiler
- Enclosing class:
- RolapNativeSql
class RolapNativeSql.IifSqlCompiler extends RolapNativeSql.FunCallSqlCompilerBase
Compiles anIIF(cond, val1, val2)
expression into SQLCASE WHEN cond THEN val1 ELSE val2 END
.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) RolapNativeSql.SqlCompiler
valueCompiler
-
Fields inherited from class mondrian.rolap.RolapNativeSql.FunCallSqlCompilerBase
argCount, category, mdx
-
-
Constructor Summary
Constructors Constructor Description IifSqlCompiler(int category, RolapNativeSql.SqlCompiler valueCompiler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
compile(Exp exp)
Returns SQL.-
Methods inherited from class mondrian.rolap.RolapNativeSql.FunCallSqlCompilerBase
compileArgs, match
-
-
-
-
Field Detail
-
valueCompiler
RolapNativeSql.SqlCompiler valueCompiler
-
-
Constructor Detail
-
IifSqlCompiler
IifSqlCompiler(int category, RolapNativeSql.SqlCompiler valueCompiler)
-
-
Method Detail
-
compile
public String compile(Exp exp)
Description copied from interface:RolapNativeSql.SqlCompiler
Returns SQL. Ifexp
can not be compiled into SQL, returns null.- Parameters:
exp
- Expression- Returns:
- SQL, or null if cannot be converted into SQL
-
-