Enum StandardOptimizerDescriptor

    • Enum Constant Detail

      • LEGACY_HILO

        public static final StandardOptimizerDescriptor LEGACY_HILO
        Describes the optimizer for using a custom "hilo" algorithm optimization, following the legacy Hibernate hilo algorithm.
      • POOLED

        public static final StandardOptimizerDescriptor POOLED
        Describes the optimizer for use with tables/sequences that store the chunk information. Here, specifically the hi value is stored in the database.
      • POOLED_LO

        public static final StandardOptimizerDescriptor POOLED_LO
        Describes the optimizer for use with tables/sequences that store the chunk information. Here, specifically the lo value is stored in the database.
      • POOLED_LOTL

        public static final StandardOptimizerDescriptor POOLED_LOTL
        Describes the optimizer for use with tables/sequences that store the chunk information. Here, specifically the lo value is stored in the database and ThreadLocal used to cache the generation state.
    • Method Detail

      • values

        public static StandardOptimizerDescriptor[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (StandardOptimizerDescriptor c : StandardOptimizerDescriptor.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static StandardOptimizerDescriptor valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null
      • fromExternalName

        public static OptimizerDescriptor fromExternalName​(String externalName)
        Interpret the incoming external name into the appropriate enum value
        Parameters:
        externalName - The external name
        Returns:
        The corresponding enum value; if no external name is supplied, NONE is returned; if an unrecognized external name is supplied, null is returned