Enum Class HibernateOrmConfigPersistenceUnit.IdOptimizerType

java.lang.Object
java.lang.Enum<HibernateOrmConfigPersistenceUnit.IdOptimizerType>
io.quarkus.hibernate.orm.deployment.HibernateOrmConfigPersistenceUnit.IdOptimizerType
All Implemented Interfaces:
Serializable, Comparable<HibernateOrmConfigPersistenceUnit.IdOptimizerType>, Constable
Enclosing interface:
HibernateOrmConfigPersistenceUnit

public static enum HibernateOrmConfigPersistenceUnit.IdOptimizerType extends Enum<HibernateOrmConfigPersistenceUnit.IdOptimizerType>
  • Enum Constant Details

    • POOLED_LO

      Assumes the value retrieved from the table/sequence is the lower end of the pool. Upon retrieving value `N`, the new pool of identifiers will go from `N` to `N + - 1`, inclusive.
    • POOLED

      Assumes the value retrieved from the table/sequence is the higher end of the pool. Upon retrieving value `N`, the new pool of identifiers will go from `N - ` to `N + - 1`, inclusive. The first value, `1`, is handled differently to avoid negative identifiers. Use this to get the legacy behavior of Quarkus 2 / Hibernate ORM 5 or older.
    • NONE

      No optimizer, resulting in a database call each and every time an identifier value is needed from the generator. Not recommended in production environments: may result in degraded performance and/or frequent gaps in identifier values.
  • Field Details

    • configName

      public final String configName
  • Method Details

    • values

      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null