Package org.jooq.meta

Interface SequenceDefinition

All Superinterfaces:
ContainerElementDefinition<SchemaDefinition>, Definition, TypedElementDefinition<SchemaDefinition>
All Known Implementing Classes:
DefaultSequenceDefinition

public interface SequenceDefinition extends TypedElementDefinition<SchemaDefinition>
An interface defining a sequence
Author:
Lukas Eder
  • Method Details

    • getStartWith

      Number getStartWith()
      Get the start value for this sequence or null, if no such value is specified.
    • getIncrementBy

      Number getIncrementBy()
      Get the increment for this sequence or null, if no such value is specified.
    • getMinvalue

      Number getMinvalue()
      Get the minimum value for this sequence or null, if no such value is specified.
    • getMaxvalue

      Number getMaxvalue()
      Get the maximum value for this sequence or null, if no such value is specified.
    • getCycle

      boolean getCycle()
      Returns true if this sequence cycles to getMinvalue() when it reaches getMaxvalue().
    • getCache

      Number getCache()
      Get the number of sequence values to cache for this sequence or null, if no such value is specified.