Enum Class GenerationStrategy

java.lang.Object
java.lang.Enum<GenerationStrategy>
org.springframework.data.couchbase.core.mapping.id.GenerationStrategy
All Implemented Interfaces:
Serializable, Comparable<GenerationStrategy>, Constable

public enum GenerationStrategy extends Enum<GenerationStrategy>
Keys generation strategy
Author:
Subhashni Balakrishnan
  • Enum Constant Details

    • USE_ATTRIBUTES

      public static final GenerationStrategy USE_ATTRIBUTES
      Constructs key from the entity attributes using the supplied id, prefix, suffix
    • UNIQUE

      public static final GenerationStrategy UNIQUE
      Uses an uuid generator
  • Method Details

    • values

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