public interface Table extends DatabaseObject, TypedObject<TableType>, DefinedObject
Modifier and Type | Method and Description |
---|---|
default Column |
getColumn(String name)
Deprecated.
|
List<Column> |
getColumns()
Gets the list of columns in ordinal order.
|
Collection<ForeignKey> |
getExportedForeignKeys()
Gets the list of exported foreign keys.
|
default ForeignKey |
getForeignKey(String name)
Deprecated.
|
Collection<ForeignKey> |
getForeignKeys()
Gets the list of foreign keys.
|
Collection<ForeignKey> |
getImportedForeignKeys()
Gets the list of imported foreign keys.
|
default Index |
getIndex(String name)
Deprecated.
|
Collection<Index> |
getIndexes()
Gets the list of indexes.
|
PrimaryKey |
getPrimaryKey()
Gets the primary key.
|
default Privilege<Table> |
getPrivilege(String name)
Deprecated.
|
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.
|
default Trigger |
getTrigger(String name)
Deprecated.
|
Collection<Trigger> |
getTriggers()
Gets the list of triggers.
|
Optional<? extends Column> |
lookupColumn(String name)
Gets a column by unqualified name.
|
Optional<? extends ForeignKey> |
lookupForeignKey(String name)
Gets a foreign key by name.
|
Optional<? extends Index> |
lookupIndex(String name)
Gets an index by unqualified name.
|
Optional<? extends Privilege<Table>> |
lookupPrivilege(String name)
Gets a privilege by unqualified name.
|
Optional<? extends Trigger> |
lookupTrigger(String name)
Gets a trigger by unqualified name.
|
getSchema
getFullName, getLookupKey, getName
compareTo
getAttribute, getAttribute, getAttributes, removeAttribute, setAttribute
getRemarks, hasRemarks
getType
getDefinition, hasDefinition
@Deprecated default Column getColumn(String name)
name
- Unqualified nameList<Column> getColumns()
Collection<ForeignKey> getExportedForeignKeys()
@Deprecated default ForeignKey getForeignKey(String name)
name
- NameCollection<ForeignKey> getForeignKeys()
Collection<ForeignKey> getImportedForeignKeys()
@Deprecated default Index getIndex(String name)
name
- NameCollection<Index> getIndexes()
PrimaryKey getPrimaryKey()
@Deprecated default Privilege<Table> getPrivilege(String name)
name
- Unqualified nameCollection<Privilege<Table>> getPrivileges()
Collection<Table> getRelatedTables(TableRelationshipType tableRelationshipType)
tableRelationshipType
- Table relationship typeCollection<TableConstraint> getTableConstraints()
TableType getTableType()
@Deprecated default Trigger getTrigger(String name)
name
- Unqualified nameCollection<Trigger> getTriggers()
Optional<? extends Column> lookupColumn(String name)
name
- Unqualified nameOptional<? extends ForeignKey> lookupForeignKey(String name)
name
- NameOptional<? extends Index> lookupIndex(String name)
name
- NameOptional<? extends Privilege<Table>> lookupPrivilege(String name)
name
- NameCopyright ? 2000-2015 Sualeh Fatehi. All rights reserved.