Example usage for org.springframework.data.mongodb.repository.query MongoQueryMethod getFieldSpecification

List of usage examples for org.springframework.data.mongodb.repository.query MongoQueryMethod getFieldSpecification

Introduction

In this page you can find the example usage for org.springframework.data.mongodb.repository.query MongoQueryMethod getFieldSpecification.

Prototype

@Nullable
String getFieldSpecification() 

Source Link

Document

Returns the field specification to be used for the query.

Usage

From source file:org.springframework.data.mongodb.repository.query.StringBasedMongoQuery.java

/**
 * Creates a new {@link StringBasedMongoQuery}.
 * /*  w w w. j a  va  2 s.c om*/
 * @param method
 * @param template
 */
public StringBasedMongoQuery(String query, MongoQueryMethod method, MongoOperations mongoOperations) {
    super(method, mongoOperations);
    this.query = query;
    this.fieldSpec = method.getFieldSpecification();
}