CosmosQueryMethod Class
- java.
lang. Object - org.
springframework. data. repository. query. QueryMethod - com.
azure. spring. data. cosmos. repository. query. CosmosQueryMethod
- com.
- org.
public class CosmosQueryMethod
extends org.springframework.data.repository.query.QueryMethod
Inherit QueryMethod class to generate a method that is designated to execute a finder query.
Constructor Summary
Constructor | Description |
---|---|
CosmosQueryMethod(Method method, RepositoryMetadata metadata, ProjectionFactory factory) |
Creates a new CosmosQueryMethod from the given parameters. |
Method Summary
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. |
Methods inherited from java.lang.Object
Methods inherited from org.springframework.data.repository.query.QueryMethod
Constructor Details
CosmosQueryMethod
public CosmosQueryMethod(Method method, RepositoryMetadata metadata, ProjectionFactory factory)
Creates a new CosmosQueryMethod from the given parameters. Looks up the correct query to use for following invocations of the method given.
Parameters:
Method Details
getEntityInformation
public EntityMetadata getEntityInformation()
Overrides:
CosmosQueryMethod.getEntityInformation()getQueryAnnotation
public String getQueryAnnotation()
Returns the query string declared in a Query annotation or null if neither the annotation found nor the attribute was specified.
Returns:
hasAnnotatedQuery
public boolean hasAnnotatedQuery()
Returns whether the method has an annotated query.
Returns:
Applies to
Azure SDK for Java