Class JdbcSchema.Table

java.lang.Object
mondrian.rolap.aggmatcher.JdbcSchema.Table
Enclosing class:
JdbcSchema

public class JdbcSchema.Table extends Object
A table in a database.
  • Field Details

  • Method Details

    • load

      public void load() throws SQLException
      Throws:
      SQLException
    • flushUsages

      public void flushUsages()
      flushes all star usage references
    • getName

      public String getName()
      Returns the name of the table.
    • getTotalColumnSize

      public int getTotalColumnSize()
      Returns the total size of a row (sum of the column sizes).
    • getNumberOfRows

      public long getNumberOfRows()
      Returns the number of rows in the table.
    • getColumns

      public Collection<JdbcSchema.Table.Column> getColumns()
      Returns the collection of columns in this Table.
    • getColumnUsages

      public Iterator<JdbcSchema.Table.Column.Usage> getColumnUsages(JdbcSchema.UsageType usageType)
      Returns an iterator over all column usages of a given type.
    • getColumn

      public JdbcSchema.Table.Column getColumn(String columnName)
      Returns a column by its name.
    • constainsColumn

      public boolean constainsColumn(String columnName)
      Return true if this table contains a column with the given name.
    • setTableUsageType

      public void setTableUsageType(mondrian.rolap.aggmatcher.JdbcSchema.TableUsageType tableUsageType)
      Sets the table usage (fact, aggregate or other).
      Parameters:
      tableUsageType - Usage type
    • getTableUsageType

      public mondrian.rolap.aggmatcher.JdbcSchema.TableUsageType getTableUsageType()
      Returns the table's usage type.
    • getTableType

      public String getTableType()
      Returns the table's type.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • print

      public void print(PrintWriter pw, String prefix)
    • getColumnMap

      public Map<String,JdbcSchema.Table.Column> getColumnMap()