Class JdbcSchema.Table

  • Enclosing class:
    JdbcSchema

    public class JdbcSchema.Table
    extends java.lang.Object
    A table in a database.
    • Method Detail

      • load

        public void load()
                  throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • flushUsages

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

        public java.lang.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 int getNumberOfRows()
        Returns the number of rows in the table.
      • getColumns

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

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

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

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

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

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

        public void print​(java.io.PrintWriter pw,
                          java.lang.String prefix)