Package org.springframework.data.elasticsearch.repository.query

Examples of org.springframework.data.elasticsearch.repository.query.ElasticsearchStringQuery


      ElasticsearchQueryMethod queryMethod = new ElasticsearchQueryMethod(method, metadata);
      String namedQueryName = queryMethod.getNamedQueryName();

      if (namedQueries.hasQuery(namedQueryName)) {
        String namedQuery = namedQueries.getQuery(namedQueryName);
        return new ElasticsearchStringQuery(queryMethod, elasticsearchOperations, namedQuery);
      } else if (queryMethod.hasAnnotatedQuery()) {
        return new ElasticsearchStringQuery(queryMethod, elasticsearchOperations, queryMethod.getAnnotatedQuery());
      }
      return new ElasticsearchPartQuery(queryMethod, elasticsearchOperations);
    }
View Full Code Here


            ElasticsearchQueryMethod queryMethod = new ElasticsearchQueryMethod(method, metadata, entityInformationCreator);
            String namedQueryName = queryMethod.getNamedQueryName();

            if (namedQueries.hasQuery(namedQueryName)) {
                String namedQuery = namedQueries.getQuery(namedQueryName);
                return new ElasticsearchStringQuery(queryMethod, elasticsearchOperations, namedQuery);
            }
            else if (queryMethod.hasAnnotatedQuery()) {
                return new ElasticsearchStringQuery(queryMethod, elasticsearchOperations, queryMethod.getAnnotatedQuery());
            }
            return new ElasticsearchPartQuery(queryMethod, elasticsearchOperations);
        }
View Full Code Here

TOP

Related Classes of org.springframework.data.elasticsearch.repository.query.ElasticsearchStringQuery

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.