Package com.invirgance.convirgance.olap
Class ReportGenerator
java.lang.Object
com.invirgance.convirgance.olap.ReportGenerator
Provides support for the SQL query generation from constructed star schemas.
- Author:
- jbanes
-
Constructor Summary
ConstructorsConstructorDescriptionReportGenerator(Star star) Constructs a ReportGenerator with a specified star schema. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDimension(Dimension dimension) Adds a new dimension to the ReportGenerator object.voidaddMeasure(Measure measure) Adds a measure to this report generator.getSQL()Generates the SQL query as a String using the dimensions and measures from this report generator.booleanReturns true if the ReportGenerator is case sensitivevoidsetCaseSensitive(boolean caseSensitive) Sets the case sensitivity for the ReportGenerator.
-
Constructor Details
-
ReportGenerator
Constructs a ReportGenerator with a specified star schema.- Parameters:
star- The Star object representing the star schema.
-
-
Method Details
-
isCaseSensitive
public boolean isCaseSensitive()Returns true if the ReportGenerator is case sensitive- Returns:
- boolean.
-
setCaseSensitive
public void setCaseSensitive(boolean caseSensitive) Sets the case sensitivity for the ReportGenerator.- Parameters:
caseSensitive- boolean value.
-
addDimension
Adds a new dimension to the ReportGenerator object. The dimension provided must be in the associated star schema to be added to the report generator.- Parameters:
dimension- the dimension to be added to the report generator.
-
addMeasure
Adds a measure to this report generator. The measure provided must already be in the associated star schema.- Parameters:
measure- the Measure to be added to the report generator.
-
getSQL
Generates the SQL query as a String using the dimensions and measures from this report generator.- Returns:
- the SQL query as a string.
-