All Implemented Interfaces:
NamedSchema, Iterable<com.invirgance.convirgance.json.JSONObject>

public class Table extends TabularStructure implements Iterable<com.invirgance.convirgance.json.JSONObject>
For working with table metadata. Used when creating logic that involves table metadata, such as comparing table equality, retrieving primary keys/foreign keys. To get a table object use DatabaseSchemaLayout.getAllTables()
Author:
jbanes
  • Method Details

    • getPrimaryKey

      public Table.PrimaryKey getPrimaryKey()
      Returns the PrimaryKey of this table.
      Returns:
      PrimaryKey
    • getForeignKeys

      public Table.ForeignKey[] getForeignKeys()
      Returns all the ForeignKeys of this table.
      Returns:
      an array of ForeignKeys.
    • select

      public SelectStatement select()
      Returns a SelectStatement based on this table.
      Returns:
      A SelectStatement.
    • iterator

      public Iterator<com.invirgance.convirgance.json.JSONObject> iterator()
      Specified by:
      iterator in interface Iterable<com.invirgance.convirgance.json.JSONObject>