public abstract class AbstractR2dbcQuery extends Object implements RepositoryQuery
RepositoryQuery
implementations for R2DBC.Constructor and Description |
---|
AbstractR2dbcQuery(R2dbcQueryMethod method,
R2dbcEntityOperations entityOperations,
R2dbcConverter converter)
|
Modifier and Type | Method and Description |
---|---|
protected abstract reactor.core.publisher.Mono<PreparedOperation<?>> |
createQuery(org.springframework.data.relational.repository.query.RelationalParameterAccessor accessor)
Creates a
BindableQuery instance using the given ParameterAccessor |
Object |
execute(Object[] parameters) |
R2dbcQueryMethod |
getQueryMethod() |
protected abstract boolean |
isCountQuery()
Returns whether the query should get a count projection applied.
|
protected abstract boolean |
isExistsQuery()
Returns whether the query should get an exists projection applied.
|
protected abstract boolean |
isModifyingQuery()
Returns whether this query is a modifying one.
|
public AbstractR2dbcQuery(R2dbcQueryMethod method, R2dbcEntityOperations entityOperations, R2dbcConverter converter)
method
- must not be null.entityOperations
- must not be null.converter
- must not be null.public R2dbcQueryMethod getQueryMethod()
getQueryMethod
in interface RepositoryQuery
public Object execute(Object[] parameters)
execute
in interface RepositoryQuery
protected abstract boolean isModifyingQuery()
protected abstract boolean isCountQuery()
protected abstract boolean isExistsQuery()
protected abstract reactor.core.publisher.Mono<PreparedOperation<?>> createQuery(org.springframework.data.relational.repository.query.RelationalParameterAccessor accessor)
BindableQuery
instance using the given ParameterAccessor
accessor
- must not be null.BindableQuery
.Copyright © 2018–2022 Pivotal Software, Inc.. All rights reserved.