public class MongoQueryMethod
extends org.springframework.data.repository.query.QueryMethod
QueryMethod
.Constructor and Description |
---|
MongoQueryMethod(Method method,
org.springframework.data.repository.core.RepositoryMetadata metadata,
org.springframework.data.projection.ProjectionFactory projectionFactory,
org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> mappingContext)
Creates a new
MongoQueryMethod from the given Method . |
Modifier and Type | Method and Description |
---|---|
protected MongoParameters |
createParameters(Method method) |
MongoEntityMetadata<?> |
getEntityInformation() |
MongoParameters |
getParameters() |
Meta |
getQueryMetaAttributes()
Returns the
Meta attributes to be applied. |
boolean |
hasAnnotatedQuery()
Returns whether the method has an annotated query.
|
boolean |
hasQueryMetaAttributes() |
boolean |
isGeoNearQuery()
Returns whether the query is a geo near query.
|
public MongoQueryMethod(Method method, org.springframework.data.repository.core.RepositoryMetadata metadata, org.springframework.data.projection.ProjectionFactory projectionFactory, org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> mappingContext)
MongoQueryMethod
from the given Method
.method
- must not be null.metadata
- must not be null.projectionFactory
- must not be null.mappingContext
- must not be null.protected MongoParameters createParameters(Method method)
createParameters
in class org.springframework.data.repository.query.QueryMethod
public boolean hasAnnotatedQuery()
public MongoEntityMetadata<?> getEntityInformation()
getEntityInformation
in class org.springframework.data.repository.query.QueryMethod
public MongoParameters getParameters()
getParameters
in class org.springframework.data.repository.query.QueryMethod
public boolean isGeoNearQuery()
public boolean hasQueryMetaAttributes()
Meta
annotation is available.Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.