public interface Table extends DatabaseObject, TypedObject<TableType>, DefinedObject
| Modifier and Type | Method and Description |
|---|---|
Collection<PrimaryKey> |
getAlternateKeys()
Gets the list of all alternate keys of the table.
|
List<Column> |
getColumns()
Gets the list of columns in ordinal order.
|
default Collection<Table> |
getDependentTables()
Gets child tables which have a foreign key from this table.
|
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.
|
default Collection<Table> |
getReferencedTables()
Gets parent tables to which this table has a foreign key.
|
default Collection<Table> |
getReferencingTables()
Deprecated.
|
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.
|
Collection<WeakAssociation> |
getWeakAssociations()
Gets the list of weak associations.
|
boolean |
hasForeignKeys()
Checks if the table has any foreign keys, whether imported or exported.
|
boolean |
hasPrimaryKey()
Checks if the table has a primary key.
|
<A extends PrimaryKey> |
lookupAlternateKey(String name)
Gets an alternate key by unqualified name.
|
<C extends Column> |
lookupColumn(String name)
Gets a column by unqualified name.
|
<F extends ForeignKey> |
lookupForeignKey(String name)
Gets a foreign key by name.
|
<I extends Index> |
lookupIndex(String name)
Gets an index by unqualified name.
|
<P extends Privilege<Table>> |
lookupPrivilege(String name)
Gets a privilege by unqualified name.
|
<C extends TableConstraint> |
lookupTableConstraint(String name)
Gets a table constraint by unqualified name.
|
<T extends Trigger> |
lookupTrigger(String name)
Gets a trigger by unqualified name.
|
getSchema, withQuotinggetFullName, getName, keycompareTogetAttribute, getAttribute, getAttributes, hasAttribute, lookupAttribute, removeAttribute, setAttributegetRemarks, hasRemarks, setRemarksgetTypegetDefinition, hasDefinitionCollection<PrimaryKey> getAlternateKeys()
List<Column> getColumns()
default Collection<Table> getDependentTables()
Collection<ForeignKey> getExportedForeignKeys()
Collection<ForeignKey> getForeignKeys()
Collection<Column> getHiddenColumns()
Collection<ForeignKey> getImportedForeignKeys()
Collection<Index> getIndexes()
PrimaryKey getPrimaryKey()
Collection<Privilege<Table>> getPrivileges()
default Collection<Table> getReferencedTables()
@Deprecated default Collection<Table> getReferencingTables()
#getDependentTables()}Collection<Table> getRelatedTables(TableRelationshipType tableRelationshipType)
tableRelationshipType - Table relationship typeCollection<TableConstraint> getTableConstraints()
TableType getTableType()
Collection<Trigger> getTriggers()
Collection<WeakAssociation> getWeakAssociations()
boolean hasForeignKeys()
boolean hasPrimaryKey()
<A extends PrimaryKey> Optional<A> lookupAlternateKey(String name)
name - Name<C extends Column> Optional<C> lookupColumn(String name)
name - Unqualified name<F extends ForeignKey> Optional<F> lookupForeignKey(String name)
name - Name<I extends Index> Optional<I> lookupIndex(String name)
name - Name<P extends Privilege<Table>> Optional<P> lookupPrivilege(String name)
name - Name<C extends TableConstraint> Optional<C> lookupTableConstraint(String name)
name - NameCopyright © 2000-2024 Sualeh Fatehi. All rights reserved.