Class AbstractDatastoreQuery<T>
java.lang.Object
com.google.cloud.spring.data.datastore.repository.query.AbstractDatastoreQuery<T>
- Type Parameters:
T
- the domain type of the repository class containing this query method.
- All Implemented Interfaces:
org.springframework.data.repository.query.RepositoryQuery
- Direct Known Subclasses:
GqlDatastoreQuery
,PartTreeDatastoreQuery
public abstract class AbstractDatastoreQuery<T>
extends Object
implements org.springframework.data.repository.query.RepositoryQuery
Abstract class for implementing Cloud Datastore query methods.
- Since:
- 1.1
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractDatastoreQuery
(DatastoreQueryMethod queryMethod, DatastoreOperations datastoreOperations, DatastoreMappingContext datastoreMappingContext, Class<T> entityType) -
Method Summary
Modifier and TypeMethodDescriptionprotected Object[]
convertCollectionParamToCompatibleArray
(List<?> param) Convert collection-like param from the query method into an array of compatible types for Datastore.org.springframework.data.repository.query.QueryMethod
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.repository.query.RepositoryQuery
execute
-
Constructor Details
-
AbstractDatastoreQuery
protected AbstractDatastoreQuery(DatastoreQueryMethod queryMethod, DatastoreOperations datastoreOperations, DatastoreMappingContext datastoreMappingContext, Class<T> entityType)
-
-
Method Details
-
getQueryMethod
public org.springframework.data.repository.query.QueryMethod getQueryMethod()- Specified by:
getQueryMethod
in interfaceorg.springframework.data.repository.query.RepositoryQuery
-
convertCollectionParamToCompatibleArray
Convert collection-like param from the query method into an array of compatible types for Datastore.- Parameters:
param
- the raw param- Returns:
- an array of a compatible type.
-
getDatastoreOperations
-