Class Table

  • All Implemented Interfaces:
    Serializable, Comparable<Table>, NamedStructure, Table, HasName

    public class Table
    extends Table
    Represents a table and its metadata description.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected DMFieldCollection fc  
      • Fields inherited from class Table

        columns, name, remarks, schema, type
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Table​(DMFieldCollection fc, Schema schema)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DMFieldCollection fc()  
      Column getColumn​(String columnName)
      Convenience method for retrieving a column by its name.
      Column getColumnByLabel​(String columnLabel)
      Convenience method for retrieving a column by its label.
      DMFieldCollection getFieldCollection()  
      protected static String tableName​(DMFieldCollection fc)  
      • Methods inherited from class Table

        getColumns, getName, getQuote, getRelationships, getRemarks, getSchema, getType
      • Methods inherited from class AbstractTable

        compareTo, equals, getBooleanColumns, getColumn, getColumnByName, getColumnCount, getColumnNames, getColumnsOfSuperType, getColumnsOfType, getForeignKeyRelationships, getForeignKeys, getIndexedColumns, getLiteralColumns, getNumberColumns, getPrimaryKeyRelationships, getPrimaryKeys, getQualifiedLabel, getQuotedName, getRelationshipCount, getRelationships, getTimeBasedColumns, hashCode, toString
    • Field Detail

      • fc

        protected transient DMFieldCollection fc
    • Constructor Detail

      • Table

        protected Table​(DMFieldCollection fc,
                        Schema schema)
    • Method Detail

      • tableName

        protected static String tableName​(DMFieldCollection fc)
      • getColumn

        public Column getColumn​(String columnName)
        Convenience method for retrieving a column by its name.
        Overrides:
        getColumn in class Table
        Parameters:
        columnName - the name of the column to retrieve
        Returns:
        the column with the given name. Returns null if no such column is found.
      • getColumnByLabel

        public Column getColumnByLabel​(String columnLabel)
        Convenience method for retrieving a column by its label.
        Parameters:
        columnLabel - the label of the column to retrieve
        Returns:
        the column with the given label. Returns null if no such column is found.
      • fc

        public DMFieldCollection fc()
      • getFieldCollection

        public DMFieldCollection getFieldCollection()