Class ReportGenerator

java.lang.Object
com.invirgance.convirgance.olap.ReportGenerator

public class ReportGenerator extends Object
Provides support for the SQL query generation from constructed star schemas.
Author:
jbanes
  • Constructor Details

    • ReportGenerator

      public ReportGenerator(Star star)
      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

      public void addDimension(Dimension dimension)
      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

      public void addMeasure(Measure measure)
      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

      public String getSQL()
      Generates the SQL query as a String using the dimensions and measures from this report generator.
      Returns:
      the SQL query as a string.