public class R2dbcQueryMethod extends QueryMethod
QueryMethod.| Constructor and Description |
|---|
R2dbcQueryMethod(Method method,
RepositoryMetadata metadata,
ProjectionFactory projectionFactory,
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() |
getDomainClass, getName, getNamedQueryName, getResultProcessor, getReturnedObjectType, isPageQuery, isQueryForEntity, isSliceQuery, toStringpublic R2dbcQueryMethod(Method method, RepositoryMetadata metadata, ProjectionFactory projectionFactory, 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 QueryMethodpublic boolean isCollectionQuery()
isCollectionQuery in class QueryMethodpublic boolean isModifyingQuery()
isModifyingQuery in class QueryMethodpublic boolean isStreamQuery()
isStreamQuery in class QueryMethodpublic org.springframework.data.relational.repository.query.RelationalEntityMetadata<?> getEntityInformation()
getEntityInformation in class QueryMethodpublic org.springframework.data.relational.repository.query.RelationalParameters getParameters()
getParameters in class 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–2020 Pivotal Software, Inc.. All rights reserved.