org.springframework.data.document.mongodb.repository
Class StringBasedMongoQuery
java.lang.Object
org.springframework.data.document.mongodb.repository.AbstractMongoQuery
org.springframework.data.document.mongodb.repository.StringBasedMongoQuery
public class StringBasedMongoQuery
- extends AbstractMongoQuery
Query to use a plain JSON String to create the Query
to actually execute.
- Author:
- Oliver Gierke
Field Summary |
private java.lang.String |
fieldSpec
|
private static Log |
LOG
|
private static java.util.regex.Pattern |
PLACEHOLDER
|
private java.lang.String |
query
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PLACEHOLDER
private static final java.util.regex.Pattern PLACEHOLDER
LOG
private static final Log LOG
query
private final java.lang.String query
fieldSpec
private final java.lang.String fieldSpec
StringBasedMongoQuery
public StringBasedMongoQuery(MongoQueryMethod method,
MongoTemplate template)
- Creates a new
StringBasedMongoQuery
.
- Parameters:
method
- template
-
createQuery
protected Query createQuery(ConvertingParameterAccessor accessor)
- Description copied from class:
AbstractMongoQuery
- Create a
Query
instance using the given ParameterAccessor
- Specified by:
createQuery
in class AbstractMongoQuery
- Returns:
replacePlaceholders
private java.lang.String replacePlaceholders(java.lang.String input,
ConvertingParameterAccessor accessor)
getParameterWithIndex
private java.lang.String getParameterWithIndex(ConvertingParameterAccessor accessor,
int index)