public class R2dbcQueryMethod
extends org.springframework.data.repository.query.QueryMethod
QueryMethod.| Constructor and Description |
|---|
R2dbcQueryMethod(Method method,
org.springframework.data.repository.core.RepositoryMetadata metadata,
org.springframework.data.projection.ProjectionFactory projectionFactory,
org.springframework.data.mapping.context.MappingContext<? extends org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?>,? extends org.springframework.data.relational.core.mapping.RelationalPersistentProperty> mappingContext)
Creates a new
R2dbcQueryMethod from the given Method. |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.data.relational.repository.query.RelationalParameters |
createParameters(Method method) |
org.springframework.data.relational.repository.query.RelationalEntityMetadata<?> |
getEntityInformation() |
org.springframework.data.relational.repository.query.RelationalParameters |
getParameters() |
String |
getRequiredAnnotatedQuery()
Returns the required query string declared in a
Query annotation
or throws IllegalStateException if neither the annotation found nor the attribute was specified. |
boolean |
hasAnnotatedQuery() |
boolean |
hasReactiveWrapperParameter()
Check if the given
QueryMethod receives a reactive parameter
wrapper as one of its parameters. |
boolean |
isCollectionQuery() |
boolean |
isModifyingQuery() |
boolean |
isStreamQuery() |
public R2dbcQueryMethod(Method method, org.springframework.data.repository.core.RepositoryMetadata metadata, org.springframework.data.projection.ProjectionFactory projectionFactory, org.springframework.data.mapping.context.MappingContext<? extends org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?>,? extends org.springframework.data.relational.core.mapping.RelationalPersistentProperty> mappingContext)
R2dbcQueryMethod from the given Method.method - must not be null.metadata - must not be null.projectionFactory - must not be null.mappingContext - must not be null.protected org.springframework.data.relational.repository.query.RelationalParameters createParameters(Method method)
createParameters in class org.springframework.data.repository.query.QueryMethodpublic boolean isCollectionQuery()
isCollectionQuery in class org.springframework.data.repository.query.QueryMethodpublic boolean isModifyingQuery()
isModifyingQuery in class org.springframework.data.repository.query.QueryMethodpublic boolean isStreamQuery()
isStreamQuery in class org.springframework.data.repository.query.QueryMethodpublic org.springframework.data.relational.repository.query.RelationalEntityMetadata<?> getEntityInformation()
getEntityInformation in class org.springframework.data.repository.query.QueryMethodpublic org.springframework.data.relational.repository.query.RelationalParameters getParameters()
getParameters in class org.springframework.data.repository.query.QueryMethodpublic boolean hasReactiveWrapperParameter()
QueryMethod receives a reactive parameter
wrapper as one of its parameters.QueryMethod receives a
reactive parameter wrapper as one of its parameters.public String getRequiredAnnotatedQuery()
Query annotation
or throws IllegalStateException if neither the annotation found nor the attribute was specified.IllegalStateException - in case query method has no annotated query.Copyright © 2018–2023 Pivotal Software, Inc.. All rights reserved.