Package org.springframework.data.gemfire.repository.query

Examples of org.springframework.data.gemfire.repository.query.StringBasedGemfireRepositoryQuery


      public RepositoryQuery resolveQuery(Method method, RepositoryMetadata metadata, NamedQueries namedQueries) {
        GemfireQueryMethod queryMethod = new GemfireQueryMethod(method, metadata, context);
        GemfireTemplate template = getTemplate(metadata);

        if (queryMethod.hasAnnotatedQuery()) {
          return new StringBasedGemfireRepositoryQuery(queryMethod, template).asUserDefinedQuery();
        }

        String namedQueryName = queryMethod.getNamedQueryName();

        if (namedQueries.hasQuery(namedQueryName)) {
          return new StringBasedGemfireRepositoryQuery(namedQueries.getQuery(namedQueryName), queryMethod,
            template).asUserDefinedQuery();
        }

        return new PartTreeGemfireRepositoryQuery(queryMethod, template);
      }
View Full Code Here

TOP

Related Classes of org.springframework.data.gemfire.repository.query.StringBasedGemfireRepositoryQuery

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.