Spring Data Document

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 org.springframework.data.repository.query.QueryMethod

TODO - Extract methods for getAnnotatedQuery() into superclass as it is currently copied from Spring Data JPA

Author:
Oliver Gierke

Constructor Summary
MongoQueryMethod(Method method, org.springframework.data.repository.core.RepositoryMetadata metadata, EntityInformationCreator entityInformationCreator)
          Creates a new MongoQueryMethod from the given Method.
 
Method Summary
protected  org.springframework.data.repository.query.Parameters createParameters(Method method)
           
 MongoEntityInformation<?,?> getEntityInformation()
           
 MongoParameters getParameters()
           
 boolean hasAnnotatedQuery()
          Returns whether the method has an annotated query.
 boolean isGeoNearQuery()
          Returns whether te query is a geoNear query.
 
Methods inherited from class org.springframework.data.repository.query.QueryMethod
getDomainClass, getName, getNamedQueryName, getReturnedObjectType, isCollectionQuery, isModifyingQuery, isPageQuery, 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,
                        org.springframework.data.repository.core.RepositoryMetadata metadata,
                        EntityInformationCreator entityInformationCreator)
Creates a new MongoQueryMethod from the given Method.

Parameters:
method -
Method Detail

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 MongoEntityInformation<?,?> 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 geoNear query.

Returns:

Spring Data Document

Copyright © 2012. All Rights Reserved.