mondrian.rolap
Class RolapNativeSql.CompositeSqlCompiler

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

static class RolapNativeSql.CompositeSqlCompiler
extends java.lang.Object
implements RolapNativeSql.SqlCompiler

Implementation of RolapNativeSql.SqlCompiler that uses chain of responsibility to find a matching sql compiler.


Field Summary
(package private)  java.util.List<RolapNativeSql.SqlCompiler> compilers
           
 
Constructor Summary
RolapNativeSql.CompositeSqlCompiler()
           
 
Method Summary
 void add(RolapNativeSql.SqlCompiler compiler)
           
 java.lang.String compile(Exp exp)
          Returns SQL.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

compilers

java.util.List<RolapNativeSql.SqlCompiler> compilers
Constructor Detail

RolapNativeSql.CompositeSqlCompiler

RolapNativeSql.CompositeSqlCompiler()
Method Detail

add

public void add(RolapNativeSql.SqlCompiler compiler)

compile

public java.lang.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object

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