Class SpannerQueryMethod

java.lang.Object
org.springframework.data.repository.query.QueryMethod
com.google.cloud.spring.data.spanner.repository.query.SpannerQueryMethod

public class SpannerQueryMethod extends org.springframework.data.repository.query.QueryMethod
A Query Method for Spanner.
Since:
1.1
  • Constructor Summary

    Constructors
    Constructor
    Description
    SpannerQueryMethod(Method queryMethod, org.springframework.data.repository.core.RepositoryMetadata metadata, org.springframework.data.projection.ProjectionFactory factory)
    Creates a new QueryMethod from the given parameters.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns whether the method has an annotated query.

    Methods inherited from class org.springframework.data.repository.query.QueryMethod

    createParameters, createParameters, createParameters, getDomainClass, getEntityInformation, getName, getNamedQueryName, getParameters, getResultProcessor, getReturnedObjectType, isCollectionQuery, isModifyingQuery, isPageQuery, isQueryForEntity, isScrollQuery, isSliceQuery, isStreamQuery, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SpannerQueryMethod

      public SpannerQueryMethod(Method queryMethod, org.springframework.data.repository.core.RepositoryMetadata metadata, org.springframework.data.projection.ProjectionFactory factory)
      Creates a new QueryMethod from the given parameters. Looks up the correct query to use for following invocations of the method given.
      Parameters:
      queryMethod - must not be null.
      metadata - must not be null.
      factory - must not be null.
  • Method Details

    • hasAnnotatedQuery

      public boolean hasAnnotatedQuery()
      Returns whether the method has an annotated query.
      Returns:
      true this query method has annotation that holds the query string.