public enum EmbeddedType extends Enum<EmbeddedType>
Enum Constant and Description |
---|
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 are
Map s that are stored as a single embedded entity in the field. |
NOT_EMBEDDED
These are properties that stored as singualr or arrays of Cloud Datastore native
field types.
|
Modifier and Type | Method and Description |
---|---|
static EmbeddedType |
of(org.springframework.data.util.TypeInformation typeInformation)
Get the
EmbeddedType of a given TypeInformation . |
static EmbeddedType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EmbeddedType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EmbeddedType NOT_EMBEDDED
public static final EmbeddedType EMBEDDED_ENTITY
public static final EmbeddedType EMBEDDED_MAP
Map
s that are stored as a single embedded entity in the field.public static EmbeddedType[] values()
for (EmbeddedType c : EmbeddedType.values()) System.out.println(c);
public static EmbeddedType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static EmbeddedType of(org.springframework.data.util.TypeInformation typeInformation)
EmbeddedType
of a given TypeInformation
.typeInformation
- the given type metadata to check for embedded type.Copyright © 2020 Pivotal Software, Inc.. All rights reserved.