mondrian.rolap
Class RolapNativeSql.CompositeSqlCompiler
java.lang.Object
mondrian.rolap.RolapNativeSql.CompositeSqlCompiler
- All Implemented Interfaces:
- RolapNativeSql.SqlCompiler
- Enclosing class:
- RolapNativeSql
static class RolapNativeSql.CompositeSqlCompiler
- extends Object
- implements RolapNativeSql.SqlCompiler
Implementation of RolapNativeSql.SqlCompiler
that uses chain of responsibility
to find a matching sql compiler.
- Since:
- Nov 23, 2005
- Author:
- av
-
-
compilers
List<RolapNativeSql.SqlCompiler> compilers
RolapNativeSql.CompositeSqlCompiler
RolapNativeSql.CompositeSqlCompiler()
add
public void add(RolapNativeSql.SqlCompiler compiler)
compile
public String compile(Exp exp)
- Description copied from interface:
RolapNativeSql.SqlCompiler
- Returns SQL. If
exp
can not be compiled into SQL,
returns null.
- Specified by:
compile
in interface RolapNativeSql.SqlCompiler
- Parameters:
exp
- Expression
- Returns:
- SQL, or null if cannot be converted into SQL
toString
public String toString()
- Overrides:
toString
in class Object