public interface Table extends DatabaseObject, TypedObject<TableType>, DefinedObject
| Modifier and Type | Method and Description |
|---|---|
List<Column> |
getColumns()
Gets the list of columns in ordinal order.
|
Collection<ForeignKey> |
getExportedForeignKeys()
Gets the list of exported foreign keys.
|
Collection<ForeignKey> |
getForeignKeys()
Gets the list of all foreign keys of the table, including imported
and exported foreign keys.
|
Collection<Column> |
getHiddenColumns()
Gets hidden columns.
|
Collection<ForeignKey> |
getImportedForeignKeys()
Gets the list of imported foreign keys.
|
Collection<Index> |
getIndexes()
Gets the list of indexes.
|
PrimaryKey |
getPrimaryKey()
Gets the primary key.
|
Collection<Privilege<Table>> |
getPrivileges()
Gets the list of privileges.
|
Collection<Table> |
getRelatedTables(TableRelationshipType tableRelationshipType)
Gets the tables related to this one, based on the specified
relationship type.
|
Collection<TableConstraint> |
getTableConstraints()
Gets the constraints for the table.
|
TableType |
getTableType()
Gets the table type.
|
Collection<Trigger> |
getTriggers()
Gets the list of triggers.
|
boolean |
hasPrimaryKey()
Checks if the table has a primary key.
|
com.annimon.stream.Optional<? extends Column> |
lookupColumn(String name)
Gets a column by unqualified name.
|
com.annimon.stream.Optional<? extends ForeignKey> |
lookupForeignKey(String name)
Gets a foreign key by name.
|
com.annimon.stream.Optional<? extends Index> |
lookupIndex(String name)
Gets an index by unqualified name.
|
com.annimon.stream.Optional<? extends Privilege<Table>> |
lookupPrivilege(String name)
Gets a privilege by unqualified name.
|
com.annimon.stream.Optional<? extends Trigger> |
lookupTrigger(String name)
Gets a trigger by unqualified name.
|
getSchemagetFullName, getLookupKey, getNamecompareTogetAttribute, getAttribute, getAttributes, hasAttribute, lookupAttribute, removeAttribute, setAttributegetRemarks, hasRemarksgetTypegetDefinition, hasDefinitionList<Column> getColumns()
Collection<ForeignKey> getExportedForeignKeys()
Collection<ForeignKey> getForeignKeys()
Collection<Column> getHiddenColumns()
Collection<ForeignKey> getImportedForeignKeys()
Collection<Index> getIndexes()
PrimaryKey getPrimaryKey()
Collection<Privilege<Table>> getPrivileges()
Collection<Table> getRelatedTables(TableRelationshipType tableRelationshipType)
tableRelationshipType - Table relationship typeCollection<TableConstraint> getTableConstraints()
TableType getTableType()
Collection<Trigger> getTriggers()
boolean hasPrimaryKey()
com.annimon.stream.Optional<? extends Column> lookupColumn(String name)
name - Unqualified namecom.annimon.stream.Optional<? extends ForeignKey> lookupForeignKey(String name)
name - Namecom.annimon.stream.Optional<? extends Index> lookupIndex(String name)
name - Namecom.annimon.stream.Optional<? extends Privilege<Table>> lookupPrivilege(String name)
name - NameCopyright © 2000-2017 Sualeh Fatehi. All rights reserved.