Class Table

    • Constructor Detail

      • Table

        public Table()
      • Table

        public Table​(java.lang.String name)
      • Table

        public Table​(Namespace namespace,
                     Identifier physicalTableName,
                     boolean isAbstract)
      • Table

        public Table​(Namespace namespace,
                     Identifier physicalTableName,
                     java.lang.String subselect,
                     boolean isAbstract)
      • Table

        public Table​(Namespace namespace,
                     java.lang.String subselect,
                     boolean isAbstract)
    • Method Detail

      • setName

        public void setName​(java.lang.String name)
      • getName

        public java.lang.String getName()
      • getNameIdentifier

        public Identifier getNameIdentifier()
      • getQuotedName

        public java.lang.String getQuotedName()
      • getQuotedName

        public java.lang.String getQuotedName​(Dialect dialect)
      • isQuoted

        public boolean isQuoted()
      • setQuoted

        public void setQuoted​(boolean quoted)
      • setSchema

        public void setSchema​(java.lang.String schema)
      • getSchema

        public java.lang.String getSchema()
      • getQuotedSchema

        public java.lang.String getQuotedSchema()
      • getQuotedSchema

        public java.lang.String getQuotedSchema​(Dialect dialect)
      • isSchemaQuoted

        public boolean isSchemaQuoted()
      • setCatalog

        public void setCatalog​(java.lang.String catalog)
      • getCatalog

        public java.lang.String getCatalog()
      • getQuotedCatalog

        public java.lang.String getQuotedCatalog()
      • getQuotedCatalog

        public java.lang.String getQuotedCatalog​(Dialect dialect)
      • isCatalogQuoted

        public boolean isCatalogQuoted()
      • getColumn

        public Column getColumn​(Column column)
        Return the column which is identified by column provided as argument.
        Parameters:
        column - column with at least a name.
        Returns:
        the underlying column or null if not inside this table. Note: the instance *can* be different than the input parameter, but the name will be the same.
      • getColumn

        public Column getColumn​(int n)
      • addColumn

        public void addColumn​(Column column)
      • getColumnSpan

        public int getColumnSpan()
      • getColumnIterator

        public java.util.Iterator<Column> getColumnIterator()
      • getIndexIterator

        public java.util.Iterator<Index> getIndexIterator()
      • getForeignKeyIterator

        public java.util.Iterator<ForeignKey> getForeignKeyIterator()
      • getUniqueKeyIterator

        public java.util.Iterator<UniqueKey> getUniqueKeyIterator()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • equals

        public boolean equals​(Table table)
      • hasPrimaryKey

        public boolean hasPrimaryKey()
      • getPrimaryKey

        public PrimaryKey getPrimaryKey()
      • setPrimaryKey

        public void setPrimaryKey​(PrimaryKey primaryKey)
      • getOrCreateIndex

        public Index getOrCreateIndex​(java.lang.String indexName)
      • getIndex

        public Index getIndex​(java.lang.String indexName)
      • addIndex

        public Index addIndex​(Index index)
      • createUniqueKey

        public UniqueKey createUniqueKey​(java.util.List<Column> keyColumns)
      • getUniqueKey

        public UniqueKey getUniqueKey​(java.lang.String keyName)
      • getOrCreateUniqueKey

        public UniqueKey getOrCreateUniqueKey​(java.lang.String keyName)
      • createForeignKeys

        public void createForeignKeys()
      • createForeignKey

        public ForeignKey createForeignKey​(java.lang.String keyName,
                                           java.util.List<Column> keyColumns,
                                           java.lang.String referencedEntityName,
                                           java.lang.String keyDefinition)
      • createForeignKey

        public ForeignKey createForeignKey​(java.lang.String keyName,
                                           java.util.List<Column> keyColumns,
                                           java.lang.String referencedEntityName,
                                           java.lang.String keyDefinition,
                                           java.util.List<Column> referencedColumns)
      • setUniqueInteger

        public void setUniqueInteger​(int uniqueInteger)
      • getUniqueInteger

        public int getUniqueInteger()
      • setIdentifierValue

        public void setIdentifierValue​(KeyValue idValue)
      • getIdentifierValue

        public KeyValue getIdentifierValue()
      • addCheckConstraint

        public void addCheckConstraint​(java.lang.String constraint)
      • containsColumn

        public boolean containsColumn​(Column column)
      • getRowId

        public java.lang.String getRowId()
      • setRowId

        public void setRowId​(java.lang.String rowId)
      • toString

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

        public java.lang.String getSubselect()
      • setSubselect

        public void setSubselect​(java.lang.String subselect)
      • isSubselect

        public boolean isSubselect()
      • isAbstractUnionTable

        public boolean isAbstractUnionTable()
      • hasDenormalizedTables

        public boolean hasDenormalizedTables()
      • setAbstract

        public void setAbstract​(boolean isAbstract)
      • isAbstract

        public boolean isAbstract()
      • isPhysicalTable

        public boolean isPhysicalTable()
      • getComment

        public java.lang.String getComment()
      • setComment

        public void setComment​(java.lang.String comment)
      • getCheckConstraintsIterator

        public java.util.Iterator<java.lang.String> getCheckConstraintsIterator()
      • getExportIdentifier

        public java.lang.String getExportIdentifier()
        Description copied from interface: Exportable
        Get a unique identifier to make sure we are not exporting the same database structure multiple times.
        Specified by:
        getExportIdentifier in interface Exportable
        Returns:
        The exporting identifier.