org.springframework.data.mongodb.repository.query
Class MongoQueryMethod
java.lang.Object
org.springframework.data.repository.query.QueryMethod
org.springframework.data.mongodb.repository.query.MongoQueryMethod
public class MongoQueryMethod
- extends org.springframework.data.repository.query.QueryMethod
Mongo specific implementation of QueryMethod.
- Author:
- Oliver Gierke
| Methods inherited from class org.springframework.data.repository.query.QueryMethod |
getDomainClass, getName, getNamedQueryName, getReturnedObjectType, isCollectionQuery, isModifyingQuery, isPageQuery, isQueryForEntity, toString |
MongoQueryMethod
public MongoQueryMethod(Method method,
org.springframework.data.repository.core.RepositoryMetadata metadata,
org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> mappingContext)
- Creates a new
MongoQueryMethod from the given Method.
- Parameters:
method -
createParameters
protected org.springframework.data.repository.query.Parameters createParameters(Method method)
- Overrides:
createParameters in class org.springframework.data.repository.query.QueryMethod
hasAnnotatedQuery
public boolean hasAnnotatedQuery()
- Returns whether the method has an annotated query.
- Returns:
getEntityInformation
public MongoEntityMetadata<?> getEntityInformation()
- Overrides:
getEntityInformation in class org.springframework.data.repository.query.QueryMethod
getParameters
public MongoParameters getParameters()
- Overrides:
getParameters in class org.springframework.data.repository.query.QueryMethod
isGeoNearQuery
public boolean isGeoNearQuery()
- Returns whether te query is a geo near query.
- Returns:
Copyright © 2013. All Rights Reserved.