public class CouchbaseQueryMethod extends QueryMethod
| Constructor and Description |
|---|
CouchbaseQueryMethod(Method method,
RepositoryMetadata metadata,
ProjectionFactory factory,
MappingContext<? extends CouchbasePersistentEntity<?>,CouchbasePersistentProperty> mappingContext) |
| Modifier and Type | Method and Description |
|---|---|
<A extends Annotation> |
getAnnotation(Class<A> annotationClass)
Caution: findMergedAnnotation() will return the default if there are any annotations but not this annotation
|
<A extends Annotation> |
getClassAnnotation(Class<A> annotationClass)
Caution: findMergedAnnotation() will return the default if there are any annotations but not this annotation
|
String |
getCollection() |
WithConsistency |
getConsistencyAnnotation() |
Dimensional |
getDimensionalAnnotation() |
<A extends Annotation> |
getEntityAnnotation(Class<A> annotationClass)
Caution: findMergedAnnotation() will return the default if there are any annotations but not this annotation
|
String |
getInlineN1qlQuery()
Returns the query string declared in a
Query annotation or null if neither the annotation found
nor the attribute was specified. |
Query |
getN1qlAnnotation()
Returns the @Query annotation if set, null otherwise.
|
<A extends Annotation> |
getRepositoryAnnotation(Class<A> annotationClass)
Caution: findMergedAnnotation() will return the default if there are any annotations but not this annotation
|
ScanConsistency |
getScanConsistencyAnnotation()
ScanConsistency annotation
|
String |
getScope() |
View |
getViewAnnotation()
Returns the @View annotation if set, null otherwise.
|
boolean |
hasConsistencyAnnotation() |
boolean |
hasDesignDoc()
If the method has a @View annotation with the designDocument specified.
|
boolean |
hasDimensionalAnnotation() |
boolean |
hasInlineN1qlQuery()
If the method has a @Query annotation with an inline Query statement inside.
|
boolean |
hasN1qlAnnotation()
If the method has a @Query annotation.
|
boolean |
hasReactiveWrapperParameter() |
boolean |
hasScanConsistencyAnnotation()
If the method has a @ScanConsistency annotation
|
boolean |
hasViewAnnotation()
If the method has a @View annotation.
|
boolean |
hasViewName()
If the method has a @View annotation with the viewName specified.
|
boolean |
hasViewSpecification()
If the method has a @View annotation with the designDocument and viewName specified.
|
boolean |
isCountQuery()
indicates if the method begins with "count"
|
boolean |
isDeleteQuery()
is this a 'delete'?
|
boolean |
isExistsQuery()
is this an 'exists' query?
|
String |
toString() |
createParameters, getDomainClass, getEntityInformation, getName, getNamedQueryName, getParameters, getResultProcessor, getReturnedObjectType, isCollectionQuery, isModifyingQuery, isPageQuery, isQueryForEntity, isSliceQuery, isStreamQuerypublic CouchbaseQueryMethod(Method method, RepositoryMetadata metadata, ProjectionFactory factory, MappingContext<? extends CouchbasePersistentEntity<?>,CouchbasePersistentProperty> mappingContext)
public boolean hasViewAnnotation()
public boolean hasViewSpecification()
public boolean hasDesignDoc()
public boolean hasViewName()
public View getViewAnnotation()
public boolean hasDimensionalAnnotation()
public Dimensional getDimensionalAnnotation()
public boolean hasN1qlAnnotation()
public Query getN1qlAnnotation()
public boolean hasInlineN1qlQuery()
public boolean hasConsistencyAnnotation()
public WithConsistency getConsistencyAnnotation()
public boolean hasScanConsistencyAnnotation()
public ScanConsistency getScanConsistencyAnnotation()
public <A extends Annotation> A getAnnotation(Class<A> annotationClass)
public <A extends Annotation> A getClassAnnotation(Class<A> annotationClass)
public <A extends Annotation> A getEntityAnnotation(Class<A> annotationClass)
public <A extends Annotation> A getRepositoryAnnotation(Class<A> annotationClass)
public String getInlineN1qlQuery()
Query annotation or null if neither the annotation found
nor the attribute was specified.public boolean isDeleteQuery()
public boolean isExistsQuery()
public boolean isCountQuery()
public String toString()
toString in class QueryMethodpublic boolean hasReactiveWrapperParameter()
public String getCollection()
public String getScope()
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.