Enum CollectionIdTypes

java.lang.Object
java.lang.Enum<CollectionIdTypes>
com.datastax.astra.client.model.CollectionIdTypes
All Implemented Interfaces:
Serializable, Comparable<CollectionIdTypes>, java.lang.constant.Constable

public enum CollectionIdTypes extends Enum<CollectionIdTypes>
List of possible types for the collection 'defaultId'.
  • Enum Constant Details

    • OBJECT_ID

      public static final CollectionIdTypes OBJECT_ID
      Represent a BSON ObjectId.
    • UUIDV6

      public static final CollectionIdTypes UUIDV6
      UUID in version v6 allowing natural ordering.
    • UUIDV7

      public static final CollectionIdTypes UUIDV7
      UUID in version v7, random and time-based.
    • UUID

      public static final CollectionIdTypes UUID
      UUID v4, the default random UUID.
  • Method Details

    • values

      public static CollectionIdTypes[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static CollectionIdTypes 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
    • fromValue

      public static CollectionIdTypes fromValue(String value)
      Creates a CollectionIdTypes from its string value.
      Parameters:
      value - The string value to look for.
      Returns:
      The corresponding CollectionIdTypes enum constant.
      Throws:
      IllegalArgumentException - if the value does not correspond to any CollectionIdTypes.