Enum ReindexOnUpdate

    • Enum Constant Detail

      • DEFAULT

        public static final ReindexOnUpdate DEFAULT
        Apply the default, safe behavior:
        • If a parent value was assigned NO, ignore an updates to this value.
        • Otherwise, track updates to this value, or any nested value, but only if they are used in the indexing process. Whenever an update is detected, trigger reindexing of the entity holding the updated value, and of any other entity accessing this value through an IndexedEmbedded for example.

        Note that updates to nested values that were assigned NO will always be ignored.

      • NO

        public static final ReindexOnUpdate NO
        Ignore updates to the values (or to any nested value) and as a consequence never trigger reindexing, unless an indexed entity is deleted or another, sibling value configured with DEFAULT is updated.

        This generally means indexing should be triggered externally to periodically refresh the index.

    • Method Detail

      • values

        public static ReindexOnUpdate[] 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 (ReindexOnUpdate c : ReindexOnUpdate.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ReindexOnUpdate 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