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 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
 

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

Field Detail

compilers

List<RolapNativeSql.SqlCompiler> compilers
Constructor Detail

RolapNativeSql.CompositeSqlCompiler

RolapNativeSql.CompositeSqlCompiler()
Method Detail

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

SourceForge.net_Logo