Class Table

java.lang.Object
net.ontopia.persistence.rdbms.Table

public class Table extends Object
INTERNAL: Represents the definition of a relational database table.
  • Field Details

  • Constructor Details

    • Table

      public Table()
  • Method Details

    • getName

      public String getName()
      INTERNAL: Gets the name of the table.
    • setName

      public void setName(String name)
      INTERNAL: Sets the name of the table.
    • getShortName

      public String getShortName()
      INTERNAL: Gets the short name of the table.
    • setShortName

      public void setShortName(String shortname)
      INTERNAL: Sets the short name of the table.
    • getProperties

      public Collection<String> getProperties()
      INTERNAL: Gets the table properties.
    • getProperty

      public String getProperty(String property)
      INTERNAL: Gets the property value
    • addProperty

      public void addProperty(String property, String value)
      INTERNAL: Adds table property.
    • removeProperty

      public void removeProperty(String property, String value)
      INTERNAL: Removes table property.
    • getColumnByName

      public Column getColumnByName(String name)
      INTERNAL: Gets a column by name.
    • getColumns

      public List<Column> getColumns()
      INTERNAL: Gets all the columns in the table.
    • addColumn

      public void addColumn(Column column)
      INTERNAL: Adds the column to the table definition.
    • removeColumn

      public void removeColumn(Column column)
      INTERNAL: Removes the column from the table definition.
    • getIndexes

      public List<Index> getIndexes()
      INTERNAL: Gets all the indexes in the table.
    • addIndex

      public void addIndex(Index index)
      INTERNAL: Adds the index to the table definition.
    • removeIndex

      public void removeIndex(Index index)
      INTERNAL: Removes the index from the table definition.
    • getPrimaryKeys

      public String[] getPrimaryKeys()
      INTERNAL: Gets the primary key columns.
    • setPrimaryKeys

      public void setPrimaryKeys(String[] pkeys)
      INTERNAL: Sets the primary key columns.