Package org.jooq.meta

Interface PositionedDefinition

All Superinterfaces:
Definition
All Known Subinterfaces:
AttributeDefinition, ColumnDefinition, EmbeddableColumnDefinition, IndexColumnDefinition, ParameterDefinition
All Known Implementing Classes:
DefaultAttributeDefinition, DefaultColumnDefinition, DefaultEmbeddableColumnDefinition, DefaultIndexColumnDefinition, DefaultParameterDefinition

public interface PositionedDefinition extends Definition
A definition that is positioned at a 1-based index within its parent.
Author:
Lukas Eder
  • Method Details

    • getPosition

      int getPosition()
      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.