Class Table

All Implemented Interfaces:
Comparable, LiquibaseSerializable, DatabaseObject

public class Table extends Relation
  • Constructor Details

    • Table

      public Table()
    • Table

      public Table(String catalogName, String schemaName, String tableName)
  • Method Details

    • getPrimaryKey

      public PrimaryKey getPrimaryKey()
    • setPrimaryKey

      public void setPrimaryKey(PrimaryKey primaryKey)
    • getOutgoingForeignKeys

      public List<ForeignKey> getOutgoingForeignKeys()
      Returns the list of all outgoing FOREIGN KEYS from this table
    • getIndexes

      public List<Index> getIndexes()
      Overrides:
      getIndexes in class Relation
    • getUniqueConstraints

      public List<UniqueConstraint> getUniqueConstraints()
      Overrides:
      getUniqueConstraints in class Relation
    • getNotNullConstraints

      public List<NotNullConstraint> getNotNullConstraints()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class AbstractDatabaseObject
    • setName

      public Table setName(String name)
      Description copied from interface: DatabaseObject
      Sets the name for the database object.
      Specified by:
      setName in interface DatabaseObject
      Overrides:
      setName in class Relation
      Parameters:
      name - the new name for the database object
      Returns:
      a reference to the same object (implementing classes are expected to return a reference to the same object).
    • getTablespace

      public String getTablespace()
    • setTablespace

      public Table setTablespace(String tablespace)
    • getDefaultTablespace

      public Boolean getDefaultTablespace()
    • setDefaultTablespace

      public Table setDefaultTablespace(Boolean tablespace)
    • isDefaultTablespace

      public boolean isDefaultTablespace()