Class PartTreeSpannerQuery<T>

  • Type Parameters:
    T - the return type of the Query Method
    All Implemented Interfaces:
    org.springframework.data.repository.query.RepositoryQuery

    public class PartTreeSpannerQuery<T>
    extends Object
    Implementation of a Spanner Query Method that handles all Part-tree / name-convention query methods.
    Since:
    1.1
    • Constructor Detail

      • PartTreeSpannerQuery

        public PartTreeSpannerQuery​(Class<T> type,
                                    SpannerQueryMethod queryMethod,
                                    SpannerTemplate spannerTemplate,
                                    SpannerMappingContext spannerMappingContext)
        Constructor.
        Parameters:
        type - the underlying entity type
        queryMethod - the underlying query method to support.
        spannerTemplate - used for executing queries.
        spannerMappingContext - used for getting metadata about entities.
    • Method Detail

      • executeRawResult

        protected List executeRawResult​(Object[] parameters)
      • execute

        public Object execute​(Object[] parameters)
        Specified by:
        execute in interface org.springframework.data.repository.query.RepositoryQuery
      • getQueryMethod

        public SpannerQueryMethod getQueryMethod()
        Specified by:
        getQueryMethod in interface org.springframework.data.repository.query.RepositoryQuery