fr.lri.bd.olap.model
Class SQLFactory

java.lang.Object
  extended by fr.lri.bd.olap.model.SQLFactory

public class SQLFactory
extends Object

SQL factory builds SQL queries from OLAP ones

Author:
holubec

Constructor Summary
SQLFactory()
           
 
Method Summary
static ViewDTO getSQLFromOlapQuery(OlapTree tree, List<GraphPath> classifierList, List<GraphPath> meassureList, List<String> operations, boolean isAbsolute)
          Build and return SQL query from OLAP one
static ViewDTO getTableSpecFromDatamart(OlapTree tree)
          Build and return SQL query from OLAP one
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLFactory

public SQLFactory()
Method Detail

getTableSpecFromDatamart

public static ViewDTO getTableSpecFromDatamart(OlapTree tree)
Build and return SQL query from OLAP one

Parameters:
tree - Olap tree of query
Returns:
View object with encapsulated informations about objects in datamart

getSQLFromOlapQuery

public static ViewDTO getSQLFromOlapQuery(OlapTree tree,
                                          List<GraphPath> classifierList,
                                          List<GraphPath> meassureList,
                                          List<String> operations,
                                          boolean isAbsolute)
Build and return SQL query from OLAP one

Parameters:
tree - Olap tree of query
classifierList - list of classifiers
meassureList - list of meassures
operations - list of operations
isAbsolute - true when classifier is just root vertex
Returns:
View object with encapsulated SQL query string