public class CosmosQueryMethod
extends org.springframework.data.repository.query.QueryMethod
| Constructor and Description |
|---|
CosmosQueryMethod(Method method,
org.springframework.data.repository.core.RepositoryMetadata metadata,
org.springframework.data.projection.ProjectionFactory factory)
Creates a new
CosmosQueryMethod from the given parameters. |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.data.repository.core.EntityMetadata<?> |
getEntityInformation() |
String |
getQueryAnnotation()
Returns the query string declared in a
Query annotation or null if neither the annotation
found
nor the attribute was specified. |
boolean |
hasAnnotatedQuery()
Returns whether the method has an annotated query.
|
createParameters, getDomainClass, getName, getNamedQueryName, getParameters, getResultProcessor, getReturnedObjectType, isCollectionQuery, isModifyingQuery, isPageQuery, isQueryForEntity, isSliceQuery, isStreamQuery, toStringpublic CosmosQueryMethod(Method method, org.springframework.data.repository.core.RepositoryMetadata metadata, org.springframework.data.projection.ProjectionFactory factory)
CosmosQueryMethod from the given parameters. Looks up the correct query to use
for following invocations of the method given.method - must not be null.metadata - must not be null.factory - must not be null.public org.springframework.data.repository.core.EntityMetadata<?> getEntityInformation()
getEntityInformation in class org.springframework.data.repository.query.QueryMethodpublic boolean hasAnnotatedQuery()
Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.