Spring Data MongoDB

org.springframework.data.mongodb.repository.query
Class MongoQueryMethod

java.lang.Object
  extended by org.springframework.data.repository.query.QueryMethod
      extended by org.springframework.data.mongodb.repository.query.MongoQueryMethod

public class MongoQueryMethod
extends QueryMethod

Mongo specific implementation of QueryMethod.

Author:
Oliver Gierke

Constructor Summary
MongoQueryMethod(Method method, RepositoryMetadata metadata, MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> mappingContext)
          Creates a new MongoQueryMethod from the given Method.
 
Method Summary
protected  Parameters createParameters(Method method)
           
 MongoEntityMetadata<?> getEntityInformation()
           
 MongoParameters getParameters()
           
 boolean hasAnnotatedQuery()
          Returns whether the method has an annotated query.
 boolean isGeoNearQuery()
          Returns whether te query is a geo near query.
 
Methods inherited from class org.springframework.data.repository.query.QueryMethod
getDomainClass, getName, getNamedQueryName, getReturnedObjectType, isCollectionQuery, isModifyingQuery, isPageQuery, isQueryForEntity, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MongoQueryMethod

public MongoQueryMethod(Method method,
                        RepositoryMetadata metadata,
                        MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> mappingContext)
Creates a new MongoQueryMethod from the given Method.

Parameters:
method -
Method Detail

createParameters

protected Parameters createParameters(Method method)
Overrides:
createParameters in class QueryMethod

hasAnnotatedQuery

public boolean hasAnnotatedQuery()
Returns whether the method has an annotated query.

Returns:

getEntityInformation

public MongoEntityMetadata<?> getEntityInformation()
Overrides:
getEntityInformation in class QueryMethod

getParameters

public MongoParameters getParameters()
Overrides:
getParameters in class QueryMethod

isGeoNearQuery

public boolean isGeoNearQuery()
Returns whether te query is a geo near query.

Returns:

Spring Data MongoDB

Copyright © 2011-2013-2013 SpringSource. All Rights Reserved.