Enum Class EmbeddedType

java.lang.Object
java.lang.Enum<EmbeddedType>
com.google.cloud.spring.data.datastore.core.mapping.EmbeddedType
All Implemented Interfaces:
Serializable, Comparable<EmbeddedType>, Constable

public enum EmbeddedType extends Enum<EmbeddedType>
The various types of properties with respect to their storage as embedded entities.
Since:
1.1
  • Enum Constant Details

    • NOT_EMBEDDED

      public static final EmbeddedType NOT_EMBEDDED
      These are properties that stored as singular or arrays of Cloud Datastore native field types. This excludes the embedded entity field type.
    • EMBEDDED_ENTITY

      public static final EmbeddedType EMBEDDED_ENTITY
      These are properties that are POJOs or collections of POJOs stored as a singular embedded entity or arrays of embedded entities in the field.
    • EMBEDDED_MAP

      public static final EmbeddedType EMBEDDED_MAP
      These are Maps that are stored as a single embedded entity in the field.
  • Method Details

    • values

      public static EmbeddedType[] 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 EmbeddedType 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
    • of

      public static EmbeddedType of(org.springframework.data.util.TypeInformation<?> typeInformation)
      Get the EmbeddedType of a given TypeInformation.
      Parameters:
      typeInformation - the given type metadata to check for embedded type.
      Returns:
      the embedded type.