public interface TableInformation
Modifier and Type | Method and Description |
---|---|
void |
addColumn(ColumnInformation columnIdentifier) |
ColumnInformation |
getColumn(Identifier columnIdentifier)
Retrieve the named ColumnInformation
|
String |
getComment()
Get the comments/remarks defined for the table.
|
ForeignKeyInformation |
getForeignKey(Identifier keyName)
Retrieve the named ForeignKeyInformation
|
Iterable<ForeignKeyInformation> |
getForeignKeys()
Obtain an iterable over all the table's defined foreign keys.
|
IndexInformation |
getIndex(Identifier indexName)
Retrieve the named IndexInformation
|
Iterable<IndexInformation> |
getIndexes()
Obtain an iterable over all the table's defined indexes.
|
QualifiedTableName |
getName()
Get the qualified name of the table.
|
PrimaryKeyInformation |
getPrimaryKey()
Retrieve information about the table's primary key, if one is defined (aka, may return
null ). |
boolean |
isPhysicalTable()
Does this information describe a physical table as opposed to a view, etc?
|
QualifiedTableName getName()
boolean isPhysicalTable()
true
if this is a physical table; false
otherwise.String getComment()
ColumnInformation getColumn(Identifier columnIdentifier)
columnIdentifier
- The column identifier (simple name)null
PrimaryKeyInformation getPrimaryKey()
null
).null
if the table did not define a primary key.Iterable<ForeignKeyInformation> getForeignKeys()
ForeignKeyInformation getForeignKey(Identifier keyName)
keyName
- The foreign key identifier (simple name)null
Iterable<IndexInformation> getIndexes()
IndexInformation getIndex(Identifier indexName)
indexName
- The index identifier (simple name)null
void addColumn(ColumnInformation columnIdentifier)
Copyright © 2001-2021 Red Hat, Inc. All Rights Reserved.