Class SequenceSupports

java.lang.Object
org.hibernate.dialect.sequence.spi.SequenceSupports

@SPI(USE) public final class SequenceSupports extends Object

Provides stable stock sequence-support strategies without exposing Hibernate's vendor-specific implementations.

Use none() for a database without sequence support. Use ansi(), nextval(), or db2() only when the corresponding complete grammar matches the database. Providers with different behavior should implement SequenceSupport or extend one of the supported family bases.

Since:
8.0
  • Method Details

    • none

      public static SequenceSupport none()
      Return the stable strategy which rejects every sequence operation.
    • ansi

      public static SequenceSupport ansi()
      Return the stable ANSI next value for strategy.
    • nextval

      public static SequenceSupport nextval()
      Return the stable sequence.nextval strategy.
    • db2

      public static SequenceSupport db2()
      Return the stable Db2/Derby family strategy.