Class GqlDatastoreQuery<T>

java.lang.Object
com.google.cloud.spring.data.datastore.repository.query.AbstractDatastoreQuery<T>
com.google.cloud.spring.data.datastore.repository.query.GqlDatastoreQuery<T>
Type Parameters:
T - the return type of the Query Method
All Implemented Interfaces:
org.springframework.data.repository.query.RepositoryQuery

@ImportRuntimeHints(DatastoreQueryRuntimeHints.class) public class GqlDatastoreQuery<T> extends AbstractDatastoreQuery<T>
Query Method for GQL queries.
Since:
1.1
  • Constructor Details

    • GqlDatastoreQuery

      public GqlDatastoreQuery(Class<T> type, DatastoreQueryMethod queryMethod, DatastoreOperations datastoreTemplate, String gql, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider, DatastoreMappingContext datastoreMappingContext)
      Constructor.
      Parameters:
      type - the underlying entity type
      queryMethod - the underlying query method to support.
      datastoreTemplate - used for executing queries.
      gql - the query text.
      evaluationContextProvider - the provider used to evaluate SpEL expressions in queries.
      datastoreMappingContext - used for getting metadata about entities.
  • Method Details