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