Package org.jooq.meta

Class DefaultEnumLiteralDefinition

All Implemented Interfaces:
ContainerElementDefinition<EnumDefinition>, Definition, EnumLiteralDefinition, PositionedDefinition

public class DefaultEnumLiteralDefinition extends AbstractContainerElementDefinition<EnumDefinition> implements EnumLiteralDefinition
Author:
Lukas Eder
  • Constructor Details

  • Method Details

    • getPosition

      public int getPosition()
      Description copied from interface: 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.

      Specified by:
      getPosition in interface PositionedDefinition
    • getLiteral

      public String getLiteral()
      Description copied from interface: EnumLiteralDefinition
      The literal.
      Specified by:
      getLiteral in interface EnumLiteralDefinition