Spring Data Couchbase

org.springframework.data.couchbase.repository.query
Class CouchbaseQueryMethod

java.lang.Object
  extended by org.springframework.data.repository.query.QueryMethod
      extended by org.springframework.data.couchbase.repository.query.CouchbaseQueryMethod

public class CouchbaseQueryMethod
extends QueryMethod

Represents a query method with couchbase extensions.

Author:
Michael Nitschinger

Constructor Summary
CouchbaseQueryMethod(Method method, RepositoryMetadata metadata, MappingContext<? extends CouchbasePersistentEntity<?>,CouchbasePersistentProperty> mappingContext)
           
 
Method Summary
 View getViewAnnotation()
          Returns the @View annoation if set, null otherwise.
 boolean hasViewAnnotation()
          If the method has a @View annotation.
 
Methods inherited from class org.springframework.data.repository.query.QueryMethod
createParameters, getDomainClass, getEntityInformation, getName, getNamedQueryName, getParameters, getReturnedObjectType, isCollectionQuery, isModifyingQuery, isPageQuery, isQueryForEntity, isSliceQuery, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CouchbaseQueryMethod

public CouchbaseQueryMethod(Method method,
                            RepositoryMetadata metadata,
                            MappingContext<? extends CouchbasePersistentEntity<?>,CouchbasePersistentProperty> mappingContext)
Method Detail

hasViewAnnotation

public boolean hasViewAnnotation()
If the method has a @View annotation.

Returns:
true if it has the annotation, false otherwise.

getViewAnnotation

public View getViewAnnotation()
Returns the @View annoation if set, null otherwise.

Returns:
the view annotation of present.

Spring Data Couchbase

Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.