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 |
|---|---|
WithConsistency |
getConsistencyAnnotation() |
Dimensional |
getDimensionalAnnotation() |
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.
|
Meta |
getQueryMetaAttributes()
Returns the
Meta attributes to be applied. |
ScanConsistency |
getScanConsistencyAnnotation()
ScanConsistency annotation
|
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 |
hasQueryMetaAttributes() |
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 boolean hasQueryMetaAttributes()
Meta annotation is available.@Nullable public Meta getQueryMetaAttributes()
Meta attributes to be applied.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()
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.