Class Dimension

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

public class Dimension extends Object
Provides support for qualitative descriptions of data.
Author:
jbanes
  • Constructor Details

    • Dimension

      public Dimension()
      Initializes an empty Dimension with no assigned attributes.
    • Dimension

      public Dimension(String name, Table table, String column)
      Constructs a Dimension with a specified name, associated database table, and column.
      Parameters:
      name - The name of the Dimension (e.g. "Region", "Item Category").
      table - The database table containing the dimension data.
      column - The column in the database table that represents the dimension.
  • Method Details

    • getStar

      public Star getStar()
      Returns the star schema associated with this dimension.
      Returns:
      the Star schema assigned to the dimension.
    • getName

      public String getName()
      Returns the name of the dimension.
      Returns:
      the name of the Dimension as a String.
    • setName

      public void setName(String name)
      Sets the name of this Dimension.
      Parameters:
      name - the new name as a String.
    • getTable

      public Table getTable()
      Returns the database table associated with this dimension.
      Returns:
      the Table object associated with this dimension.
    • setTable

      public void setTable(Table table)
      Assigns a new table to this dimension.
      Parameters:
      table - the Table object containing the dimension data.
    • getColumn

      public String getColumn()
      Returns the column representing this dimension.
      Returns:
      the Column object representing the dimension.
    • setColumn

      public void setColumn(String column)
      Sets the column associated with this dimension.
      Parameters:
      column - the Column object associated with the dimension.