fr.lri.bd.olap.model
Class SQLFactory
java.lang.Object
fr.lri.bd.olap.model.SQLFactory
public class SQLFactory
- extends Object
SQL factory builds SQL queries from OLAP ones
- Author:
- holubec
SQLFactory
public SQLFactory()
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 queryclassifierList - list of classifiersmeassureList - list of meassuresoperations - list of operationsisAbsolute - true when classifier is just root vertex
- Returns:
- View object with encapsulated SQL query string