Interface SequenceIdGenerator

All Superinterfaces:
IdGenerator
All Known Implementing Classes:
BuiltinSequenceIdGenerator

public interface SequenceIdGenerator extends IdGenerator
A generator that uses a database SEQUENCE.
  • Method Details

    • setQualifiedSequenceName

      void setQualifiedSequenceName(String qualifiedSequenceName)
      Sets the qualified name of the sequence.
      Parameters:
      qualifiedSequenceName - the qualified name of the sequence
    • setInitialValue

      void setInitialValue(long initialValue)
      Sets the initial value.
      Parameters:
      initialValue - the initial value
    • setAllocationSize

      void setAllocationSize(long allocationSize)
      Sets the allocation size.
      Parameters:
      allocationSize - the allocation size
    • initialize

      void initialize()
      Initializes this generator.
      Throws:
      JdbcException - if the initialization is failed