Class StringBasedMongoQuery

java.lang.Object
org.springframework.data.mongodb.repository.query.AbstractMongoQuery
org.springframework.data.mongodb.repository.query.StringBasedMongoQuery
All Implemented Interfaces:
org.springframework.data.repository.query.RepositoryQuery

public class StringBasedMongoQuery extends AbstractMongoQuery
Query to use a plain JSON String to create the Query to actually execute.
Author:
Oliver Gierke, Christoph Strobl, Thomas Darimont, Mark Paluch
  • Constructor Details

    • StringBasedMongoQuery

      public StringBasedMongoQuery(MongoQueryMethod method, MongoOperations mongoOperations, org.springframework.expression.ExpressionParser expressionParser, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider)
      Creates a new StringBasedMongoQuery for the given MongoQueryMethod, MongoOperations, SpelExpressionParser and QueryMethodEvaluationContextProvider.
      Parameters:
      method - must not be null.
      mongoOperations - must not be null.
      expressionParser - must not be null.
      evaluationContextProvider - must not be null.
    • StringBasedMongoQuery

      public StringBasedMongoQuery(String query, MongoQueryMethod method, MongoOperations mongoOperations, org.springframework.expression.ExpressionParser expressionParser, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider)
      Creates a new StringBasedMongoQuery for the given String, MongoQueryMethod, MongoOperations, SpelExpressionParser and QueryMethodEvaluationContextProvider.
      Parameters:
      query - must not be null.
      method - must not be null.
      mongoOperations - must not be null.
      expressionParser - must not be null.
  • Method Details