java.lang.Object
org.jooq.meta.AbstractDefinition
org.jooq.meta.AbstractElementContainerDefinition<ColumnDefinition>
org.jooq.meta.AbstractTableDefinition
- Alle implementierten Schnittstellen:
Definition,TableDefinition
- Bekannte direkte Unterklassen:
CUBRIDTableDefinition,DefaultMetaTableDefinition,DerbyTableDefinition,FirebirdTableDefinition,FirebirdTableValuedFunction,H2TableDefinition,HSQLDBTableDefinition,HSQLDBTableValuedFunction,MySQLTableDefinition,PostgresMaterializedViewDefinition,PostgresTableDefinition,PostgresTableValuedFunction,SQLiteTableDefinition,XMLTableDefinition
public abstract class AbstractTableDefinition
extends AbstractElementContainerDefinition<ColumnDefinition>
implements TableDefinition
A base implementation for table definitions.
- Autor:
- Lukas Eder
-
Feldübersicht
Von Klasse geerbte Felder org.jooq.meta.AbstractElementContainerDefinition
PRECISION_SCALE -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungAbstractTableDefinition(SchemaDefinition schema, String name, String comment) AbstractTableDefinition(SchemaDefinition schema, String name, String comment, TableOptions.TableType tableType, String source) AbstractTableDefinition(SchemaDefinition schema, String name, String comment, TableOptions.TableType tableType, String source, SchemaDefinition referencedSchema, String referencedName) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal List<CheckConstraintDefinition> Get theCHECKconstraints for this table.final List<TableDefinition> Get the child tables if table inheritance is applicable.final ColumnDefinitiongetColumn(int columnIndex) Get a column in this type by its index (starting at 0).final ColumnDefinitionGet a column in this type by its name.final ColumnDefinitionGet a column in this type by its name.final List<ColumnDefinition> All columns in the type, table or view.protected List<ColumnDefinition> final List<EmbeddableDefinition> All embeddable types in this defining table.final List<ForeignKeyDefinition> Get the foreign keys for this table.final List<ForeignKeyDefinition> getForeignKeys(TableDefinition referenced) Get the foreign keys for this table referencing a specific table.final IdentityDefinitionGet theIDENTITYcolumn of this table, ornull, if no such column exists.final List<IndexDefinition> Get the indexes for this table.final List<InverseForeignKeyDefinition> Get the inverse foreign keys for this table.final List<InverseForeignKeyDefinition> getInverseForeignKeys(TableDefinition referencing) Get the inverse foreign keys for this table referenced from a specific table.final UniqueKeyDefinitionGet the unique key or primary key for this table by name.final List<UniqueKeyDefinition> getKeys()Get the unique keys and primary keys for this table.final List<ManyToManyKeyDefinition> Get the many to many keys for this table.final List<ManyToManyKeyDefinition> getManyToManyKeys(TableDefinition referencing) Get the many to many keys for this table referencing another, specific table.final List<ParameterDefinition> The parameters of this table if this is a table-valued function.protected List<ParameterDefinition> final TableDefinitionGet the parent table if table inheritance is applicable.final UniqueKeyDefinitionGet the primary key for this table.final List<EmbeddableDefinition> All embeddable types in this referencing table.final TableDefinitionThe referenced table type, if thisTableDefinition.isTableValuedFunction().getTable()This TableDefinition as aTable.final TableOptionsTheTableOptionsproviding additional information about the table.final UniqueKeyDefinitiongetUniqueKey(String name) Get the unique key for this table by name.final List<UniqueKeyDefinition> Get the unique keys for this table.final booleanWhether this table is a materialized view.booleanWhether this table is a synthetic table (e.g.final booleanWhether this table is a table-valued function.final booleanWhether this table is a temporary table.final booleanisView()Whether this table is a view.final voidsetParentTable(TableDefinition parentTable) Von Klasse geerbte Methoden org.jooq.meta.AbstractElementContainerDefinition
getElement, getElement, getElement, getElements, parseNotNull, parsePrecision, parseScale, parseTypeNameVon Klasse geerbte Methoden org.jooq.meta.AbstractDefinition
create, create, equals, getCatalog, getComment, getConnection, getDatabase, getDefinitionPath, getDialect, getInputName, getName, getOutputName, getOverload, getPackage, getPartiallyQualifiedNames, getQualifiedInputName, getQualifiedInputNamePart, getQualifiedName, getQualifiedNamePart, getQualifiedOutputName, getQualifiedOutputNamePart, getSchema, getSource, hashCode, toStringVon Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden org.jooq.meta.Definition
getCatalog, getComment, getDatabase, getDefinitionPath, getInputName, getName, getOutputName, getOverload, getPackage, getPartiallyQualifiedNames, getQualifiedInputName, getQualifiedInputNamePart, getQualifiedName, getQualifiedNamePart, getQualifiedOutputName, getQualifiedOutputNamePart, getSchema, getSource
-
Konstruktordetails
-
AbstractTableDefinition
-
AbstractTableDefinition
public AbstractTableDefinition(SchemaDefinition schema, String name, String comment, TableOptions.TableType tableType, String source) -
AbstractTableDefinition
public AbstractTableDefinition(SchemaDefinition schema, String name, String comment, TableOptions.TableType tableType, String source, SchemaDefinition referencedSchema, String referencedName)
-
-
Methodendetails
-
isSynthetic
public boolean isSynthetic()Beschreibung aus Schnittstelle kopiert:TableDefinitionWhether this table is a synthetic table (e.g. a synthetic view).- Angegeben von:
isSyntheticin SchnittstelleDefinition- Angegeben von:
isSyntheticin SchnittstelleTableDefinition
-
getEmbeddables
Beschreibung aus Schnittstelle kopiert:TableDefinitionAll embeddable types in this defining table.- Angegeben von:
getEmbeddablesin SchnittstelleTableDefinition
-
getReferencedEmbeddables
Beschreibung aus Schnittstelle kopiert:TableDefinitionAll embeddable types in this referencing table.- Angegeben von:
getReferencedEmbeddablesin SchnittstelleTableDefinition
-
getPrimaryKey
Beschreibung aus Schnittstelle kopiert:TableDefinitionGet the primary key for this table.- Angegeben von:
getPrimaryKeyin SchnittstelleTableDefinition
-
getIndexes
Beschreibung aus Schnittstelle kopiert:TableDefinitionGet the indexes for this table.- Angegeben von:
getIndexesin SchnittstelleTableDefinition
-
getUniqueKeys
Beschreibung aus Schnittstelle kopiert:TableDefinitionGet the unique keys for this table.- Angegeben von:
getUniqueKeysin SchnittstelleTableDefinition
-
getUniqueKey
Beschreibung aus Schnittstelle kopiert:TableDefinitionGet the unique key for this table by name.- Angegeben von:
getUniqueKeyin SchnittstelleTableDefinition
-
getKeys
Beschreibung aus Schnittstelle kopiert:TableDefinitionGet the unique keys and primary keys for this table.- Angegeben von:
getKeysin SchnittstelleTableDefinition
-
getKey
Beschreibung aus Schnittstelle kopiert:TableDefinitionGet the unique key or primary key for this table by name.- Angegeben von:
getKeyin SchnittstelleTableDefinition
-
getForeignKeys
Beschreibung aus Schnittstelle kopiert:TableDefinitionGet the foreign keys for this table.- Angegeben von:
getForeignKeysin SchnittstelleTableDefinition
-
getForeignKeys
Beschreibung aus Schnittstelle kopiert:TableDefinitionGet the foreign keys for this table referencing a specific table.- Angegeben von:
getForeignKeysin SchnittstelleTableDefinition
-
getInverseForeignKeys
Beschreibung aus Schnittstelle kopiert:TableDefinitionGet the inverse foreign keys for this table.- Angegeben von:
getInverseForeignKeysin SchnittstelleTableDefinition
-
getInverseForeignKeys
Beschreibung aus Schnittstelle kopiert:TableDefinitionGet the inverse foreign keys for this table referenced from a specific table.- Angegeben von:
getInverseForeignKeysin SchnittstelleTableDefinition
-
getManyToManyKeys
Beschreibung aus Schnittstelle kopiert:TableDefinitionGet the many to many keys for this table.- Angegeben von:
getManyToManyKeysin SchnittstelleTableDefinition
-
getManyToManyKeys
Beschreibung aus Schnittstelle kopiert:TableDefinitionGet the many to many keys for this table referencing another, specific table.- Angegeben von:
getManyToManyKeysin SchnittstelleTableDefinition
-
getCheckConstraints
Beschreibung aus Schnittstelle kopiert:TableDefinitionGet theCHECKconstraints for this table.- Angegeben von:
getCheckConstraintsin SchnittstelleTableDefinition
-
getIdentity
Beschreibung aus Schnittstelle kopiert:TableDefinitionGet theIDENTITYcolumn of this table, ornull, if no such column exists.- Angegeben von:
getIdentityin SchnittstelleTableDefinition
-
setParentTable
-
getParentTable
Beschreibung aus Schnittstelle kopiert:TableDefinitionGet the parent table if table inheritance is applicable.- Angegeben von:
getParentTablein SchnittstelleTableDefinition
-
getChildTables
Beschreibung aus Schnittstelle kopiert:TableDefinitionGet the child tables if table inheritance is applicable.- Angegeben von:
getChildTablesin SchnittstelleTableDefinition
-
getTable
Beschreibung aus Schnittstelle kopiert:TableDefinitionThis TableDefinition as aTable.- Angegeben von:
getTablein SchnittstelleTableDefinition
-
getTableOptions
Beschreibung aus Schnittstelle kopiert:TableDefinitionTheTableOptionsproviding additional information about the table.- Angegeben von:
getTableOptionsin SchnittstelleTableDefinition
-
getColumns
Beschreibung aus Schnittstelle kopiert:TableDefinitionAll columns in the type, table or view.- Angegeben von:
getColumnsin SchnittstelleTableDefinition
-
getColumn
Beschreibung aus Schnittstelle kopiert:TableDefinitionGet a column in this type by its name.- Angegeben von:
getColumnin SchnittstelleTableDefinition
-
getColumn
Beschreibung aus Schnittstelle kopiert:TableDefinitionGet a column in this type by its name.- Angegeben von:
getColumnin SchnittstelleTableDefinition
-
getColumn
Beschreibung aus Schnittstelle kopiert:TableDefinitionGet a column in this type by its index (starting at 0).- Angegeben von:
getColumnin SchnittstelleTableDefinition
-
getParameters
Beschreibung aus Schnittstelle kopiert:TableDefinitionThe parameters of this table if this is a table-valued function.- Angegeben von:
getParametersin SchnittstelleTableDefinition
-
isTemporary
public final boolean isTemporary()Beschreibung aus Schnittstelle kopiert:TableDefinitionWhether this table is a temporary table.- Angegeben von:
isTemporaryin SchnittstelleTableDefinition
-
isView
public final boolean isView()Beschreibung aus Schnittstelle kopiert:TableDefinitionWhether this table is a view.- Angegeben von:
isViewin SchnittstelleTableDefinition
-
isMaterializedView
public final boolean isMaterializedView()Beschreibung aus Schnittstelle kopiert:TableDefinitionWhether this table is a materialized view.- Angegeben von:
isMaterializedViewin SchnittstelleTableDefinition
-
isTableValuedFunction
public final boolean isTableValuedFunction()Beschreibung aus Schnittstelle kopiert:TableDefinitionWhether this table is a table-valued function.- Angegeben von:
isTableValuedFunctionin SchnittstelleTableDefinition
-
getReferencedTable
Beschreibung aus Schnittstelle kopiert:TableDefinitionThe referenced table type, if thisTableDefinition.isTableValuedFunction().This returns:
this, ifTableDefinition.isTableValuedFunction()==falsethis, ifTableDefinition.isTableValuedFunction()==truebut the table valued function doesn't reference a table type- Another table, if
TableDefinition.isTableValuedFunction()==trueand the table valued function references a table type
- Angegeben von:
getReferencedTablein SchnittstelleTableDefinition
-
getElements0
- Angegeben von:
getElements0in KlasseAbstractElementContainerDefinition<ColumnDefinition>- Löst aus:
SQLException
-
getParameters0
-