Enum Class WriteTypeHint

java.lang.Object
java.lang.Enum<WriteTypeHint>
org.springframework.data.elasticsearch.annotations.WriteTypeHint
All Implemented Interfaces:
Serializable, Comparable<WriteTypeHint>, Constable

public enum WriteTypeHint extends Enum<WriteTypeHint>
Defines if type hints should be written. Used by Document annotation.
Since:
4.3
Author:
Peter-Josef Meisch
  • Enum Constant Details

    • DEFAULT

      public static final WriteTypeHint DEFAULT
      Use the global settings from the MappingContext.
    • TRUE

      public static final WriteTypeHint TRUE
      Always write type hints for the entity.
    • FALSE

      public static final WriteTypeHint FALSE
      Never write type hints for the entity.
  • Method Details

    • values

      public static WriteTypeHint[] 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

      public static WriteTypeHint valueOf(String name)
      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