public abstract class DatastoreNativeTypes extends Object
| Modifier and Type | Field and Description |
|---|---|
static Set<Class<?>> |
DATASTORE_NATIVE_TYPES
The set of natively-supported Datastore types.
|
static org.springframework.data.mapping.model.SimpleTypeHolder |
HOLDER
A simple type holder that only contains the Cloud Datastore native data types.
|
static Set<Class<?>> |
ID_TYPES
The set of native ID types that Datastore supports.
|
| Constructor and Description |
|---|
DatastoreNativeTypes() |
| Modifier and Type | Method and Description |
|---|---|
static void |
bindValueToGqlBuilder(com.google.cloud.datastore.GqlQuery.Builder builder,
String tagName,
Object val)
Bind a given tag and value to a GQL query builder.
|
static boolean |
isNativeType(Class aClass)
Checks if a given type is a native type for Cloud Datastore.
|
static com.google.cloud.datastore.Value |
wrapValue(Object propertyVal)
Wraps Datastore native type to Datastore value type.
|
public static final Set<Class<?>> DATASTORE_NATIVE_TYPES
public static final Set<Class<?>> ID_TYPES
public static final org.springframework.data.mapping.model.SimpleTypeHolder HOLDER
public static boolean isNativeType(Class aClass)
aClass - the class type to checkpublic static com.google.cloud.datastore.Value wrapValue(Object propertyVal)
propertyVal - the property value to wrappublic static void bindValueToGqlBuilder(com.google.cloud.datastore.GqlQuery.Builder builder,
String tagName,
Object val)
builder - the builder holding a GQL query that is being built.tagName - the name of the tag to bind.val - the value to bind to the tag.Copyright © 2019 Pivotal Software, Inc.. All rights reserved.