Enum Class EmbeddedType
- All Implemented Interfaces:
Serializable
,Comparable<EmbeddedType>
,Constable
The various types of properties with respect to their storage as embedded entities.
- Since:
- 1.1
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThese are properties that are POJOs or collections of POJOs stored as a singular embedded entity or arrays of embedded entities in the field.These areMap
s that are stored as a single embedded entity in the field.These are properties that stored as singular or arrays of Cloud Datastore native field types. -
Method Summary
Modifier and TypeMethodDescriptionstatic EmbeddedType
of
(org.springframework.data.util.TypeInformation<?> typeInformation) Get theEmbeddedType
of a givenTypeInformation
.static EmbeddedType
Returns the enum constant of this class with the specified name.static EmbeddedType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
These areMap
s that are stored as a single embedded entity in the field.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
of
Get theEmbeddedType
of a givenTypeInformation
.- Parameters:
typeInformation
- the given type metadata to check for embedded type.- Returns:
- the embedded type.
-