public abstract class AbstractTableDefinition extends AbstractElementContainerDefinition<ColumnDefinition> implements TableDefinition
PRECISION_SCALE| Constructor and Description |
|---|
AbstractTableDefinition(SchemaDefinition schema,
String name,
String comment) |
AbstractTableDefinition(SchemaDefinition schema,
String name,
String comment,
TableOptions.TableType tableType,
String source) |
| Modifier and Type | Method and Description |
|---|---|
List<CheckConstraintDefinition> |
getCheckConstraints()
Get the
CHECK constraints for this table. |
List<TableDefinition> |
getChildTables()
Get the child tables if table inheritance is applicable.
|
ColumnDefinition |
getColumn(int columnIndex)
Get a column in this type by its index (starting at 0).
|
ColumnDefinition |
getColumn(String columnName)
Get a column in this type by its name.
|
ColumnDefinition |
getColumn(String columnName,
boolean ignoreCase)
Get a column in this type by its name.
|
List<ColumnDefinition> |
getColumns()
All columns in the type, table or view.
|
protected List<ColumnDefinition> |
getElements0() |
List<EmbeddableDefinition> |
getEmbeddables()
All embeddable types in this defining table.
|
List<ForeignKeyDefinition> |
getForeignKeys()
Get the foreign keys for this table.
|
List<ForeignKeyDefinition> |
getForeignKeys(TableDefinition referenced)
Get the foreign keys for this table referencing a specific table.
|
IdentityDefinition |
getIdentity()
Get the
IDENTITY column of this table, or null,
if no such column exists. |
List<IndexDefinition> |
getIndexes()
Get the indexes for this table.
|
List<ParameterDefinition> |
getParameters()
The parameters of this table if this is a table-valued function.
|
protected List<ParameterDefinition> |
getParameters0() |
TableDefinition |
getParentTable()
Get the parent table if table inheritance is applicable.
|
UniqueKeyDefinition |
getPrimaryKey()
Get the primary key for this table.
|
List<EmbeddableDefinition> |
getReferencedEmbeddables()
All embeddable types in this referencing table.
|
Table<Record> |
getTable()
This TableDefinition as a
Table. |
UniqueKeyDefinition |
getUniqueKey(String name)
Get the unique key for this table by name.
|
List<UniqueKeyDefinition> |
getUniqueKeys()
Get the unique keys for this table.
|
boolean |
isMaterializedView()
Whether this table is a materialized view.
|
boolean |
isTableValuedFunction()
Whether this table is a table-valued function.
|
boolean |
isTemporary()
Whether this table is a temporary table.
|
boolean |
isView()
Whether this table is a view.
|
void |
setParentTable(TableDefinition parentTable) |
getElement, getElement, getElement, getElements, parseNotNull, parsePrecision, parseScale, parseTypeNamecreate, create, equals, getCatalog, getComment, getConnection, getDatabase, getDefinitionPath, getDialect, getInputName, getName, getOutputName, getOverload, getPackage, getQualifiedInputName, getQualifiedInputNamePart, getQualifiedName, getQualifiedNamePart, getQualifiedOutputName, getQualifiedOutputNamePart, getSchema, getSource, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCatalog, getComment, getDatabase, getDefinitionPath, getInputName, getName, getOutputName, getOverload, getPackage, getQualifiedInputName, getQualifiedInputNamePart, getQualifiedName, getQualifiedNamePart, getQualifiedOutputName, getQualifiedOutputNamePart, getSchema, getSourcepublic AbstractTableDefinition(SchemaDefinition schema, String name, String comment)
public AbstractTableDefinition(SchemaDefinition schema, String name, String comment, TableOptions.TableType tableType, String source)
public final List<EmbeddableDefinition> getEmbeddables()
TableDefinitiongetEmbeddables in interface TableDefinitionpublic final List<EmbeddableDefinition> getReferencedEmbeddables()
TableDefinitiongetReferencedEmbeddables in interface TableDefinitionpublic final UniqueKeyDefinition getPrimaryKey()
TableDefinitiongetPrimaryKey in interface TableDefinitionpublic final List<IndexDefinition> getIndexes()
TableDefinitiongetIndexes in interface TableDefinitionpublic final List<UniqueKeyDefinition> getUniqueKeys()
TableDefinitiongetUniqueKeys in interface TableDefinitionpublic final UniqueKeyDefinition getUniqueKey(String name)
TableDefinitiongetUniqueKey in interface TableDefinitionpublic final List<ForeignKeyDefinition> getForeignKeys()
TableDefinitiongetForeignKeys in interface TableDefinitionpublic final List<ForeignKeyDefinition> getForeignKeys(TableDefinition referenced)
TableDefinitiongetForeignKeys in interface TableDefinitionpublic final List<CheckConstraintDefinition> getCheckConstraints()
TableDefinitionCHECK constraints for this table.getCheckConstraints in interface TableDefinitionpublic final IdentityDefinition getIdentity()
TableDefinitionIDENTITY column of this table, or null,
if no such column exists.getIdentity in interface TableDefinitionpublic final void setParentTable(TableDefinition parentTable)
public final TableDefinition getParentTable()
TableDefinitiongetParentTable in interface TableDefinitionpublic final List<TableDefinition> getChildTables()
TableDefinitiongetChildTables in interface TableDefinitionpublic final Table<Record> getTable()
TableDefinitionTable.getTable in interface TableDefinitionpublic final List<ColumnDefinition> getColumns()
TableDefinitiongetColumns in interface TableDefinitionpublic final ColumnDefinition getColumn(String columnName)
TableDefinitiongetColumn in interface TableDefinitionpublic final ColumnDefinition getColumn(String columnName, boolean ignoreCase)
TableDefinitiongetColumn in interface TableDefinitionpublic final ColumnDefinition getColumn(int columnIndex)
TableDefinitiongetColumn in interface TableDefinitionpublic final List<ParameterDefinition> getParameters()
TableDefinitiongetParameters in interface TableDefinitionpublic final boolean isTemporary()
TableDefinitionisTemporary in interface TableDefinitionpublic final boolean isView()
TableDefinitionisView in interface TableDefinitionpublic final boolean isMaterializedView()
TableDefinitionisMaterializedView in interface TableDefinitionpublic final boolean isTableValuedFunction()
TableDefinitionisTableValuedFunction in interface TableDefinitionprotected List<ColumnDefinition> getElements0() throws SQLException
getElements0 in class AbstractElementContainerDefinition<ColumnDefinition>SQLExceptionprotected List<ParameterDefinition> getParameters0()
Copyright © 2021. All rights reserved.