Package org.jooq.meta

Klasse DefaultColumnDefinition

Alle implementierten Schnittstellen:
ColumnDefinition, Definition, PositionedDefinition, TypedElementDefinition<TableDefinition>

public class DefaultColumnDefinition extends AbstractTypedElementDefinition<TableDefinition> implements ColumnDefinition
A base implementation for column definitions.
Autor:
Lukas Eder
  • Konstruktordetails

  • Methodendetails

    • isSynthetic

      public final boolean isSynthetic()
      Beschreibung aus Schnittstelle kopiert: Definition
      Whether the object has been created "synthetically", i.e. from SyntheticObjectsType, rather than from the underlying meta data source.
      Angegeben von:
      isSynthetic in Schnittstelle Definition
    • getPosition

      public final int getPosition()
      Beschreibung aus Schnittstelle kopiert: PositionedDefinition
      The object's 1-based position in the parent.

      [#17434] While in most RDBMS, this value is 1-based and a consecutive ordinal, there may be cases where a positional value is skipped, either by what's reported by the RDBMS's dictionary views, or because the definition is filtered by jOOQ-meta. Users shouldn't rely on the positions reflecting the actually generated column/attribute/etc. position.

      Angegeben von:
      getPosition in Schnittstelle PositionedDefinition
    • getPrimaryKey

      public final UniqueKeyDefinition getPrimaryKey()
      Beschreibung aus Schnittstelle kopiert: ColumnDefinition
      A definition for the primary key that this column is part of, or null if this column is not part of a primary key.
      Angegeben von:
      getPrimaryKey in Schnittstelle ColumnDefinition
    • getUniqueKeys

      public final List<UniqueKeyDefinition> getUniqueKeys()
      Beschreibung aus Schnittstelle kopiert: ColumnDefinition
      All definitions of unique keys that this column is part of.
      Angegeben von:
      getUniqueKeys in Schnittstelle ColumnDefinition
    • getKeys

      public final List<UniqueKeyDefinition> getKeys()
      Beschreibung aus Schnittstelle kopiert: ColumnDefinition
      All definitions of unique and primary keys that this column is part of.
      Angegeben von:
      getKeys in Schnittstelle ColumnDefinition
    • getForeignKeys

      public final List<ForeignKeyDefinition> getForeignKeys()
      Beschreibung aus Schnittstelle kopiert: ColumnDefinition
      All definitions of foreign keys that this column is part of.
      Angegeben von:
      getForeignKeys in Schnittstelle ColumnDefinition
    • isIdentity

      public final boolean isIdentity()
      Beschreibung aus Schnittstelle kopiert: ColumnDefinition
      Whether this column is the table's IDENTITY column.
      Angegeben von:
      isIdentity in Schnittstelle ColumnDefinition
    • isReadonly

      public final boolean isReadonly()
      Beschreibung aus Schnittstelle kopiert: ColumnDefinition
      Whether this column is readonly.
      Angegeben von:
      isReadonly in Schnittstelle ColumnDefinition