Class PartTreeR2dbcQuery
java.lang.Object
org.springframework.data.r2dbc.repository.query.AbstractR2dbcQuery
org.springframework.data.r2dbc.repository.query.PartTreeR2dbcQuery
- All Implemented Interfaces:
org.springframework.data.repository.query.RepositoryQuery
An
AbstractR2dbcQuery
implementation based on a PartTree
.- Since:
- 1.1
- Author:
- Roman Chigvintsev, Mark Paluch, Diego Krupitza
-
Constructor Summary
ConstructorDescriptionPartTreeR2dbcQuery
(R2dbcQueryMethod method, R2dbcEntityOperations entityOperations, R2dbcConverter converter, ReactiveDataAccessStrategy dataAccessStrategy) Creates new instance of this class with the givenR2dbcQueryMethod
,DatabaseClient
,R2dbcConverter
andReactiveDataAccessStrategy
. -
Method Summary
Modifier and TypeMethodDescriptionprotected reactor.core.publisher.Mono<PreparedOperation<?>>
createQuery
(RelationalParameterAccessor accessor) Creates aBindableQuery
instance using the givenParameterAccessor
protected boolean
Returns whether the query should get a count projection applied.protected boolean
Returns whether the query should get an exists projection applied.protected boolean
Returns whether this query is a modifying one.toString()
Methods inherited from class org.springframework.data.r2dbc.repository.query.AbstractR2dbcQuery
execute, getQueryMethod
-
Constructor Details
-
PartTreeR2dbcQuery
public PartTreeR2dbcQuery(R2dbcQueryMethod method, R2dbcEntityOperations entityOperations, R2dbcConverter converter, ReactiveDataAccessStrategy dataAccessStrategy) Creates new instance of this class with the givenR2dbcQueryMethod
,DatabaseClient
,R2dbcConverter
andReactiveDataAccessStrategy
.- Parameters:
method
- query method, must not be null.entityOperations
- entity operations, must not be null.converter
- converter, must not be null.dataAccessStrategy
- data access strategy, must not be null.
-
-
Method Details
-
isModifyingQuery
protected boolean isModifyingQuery()Description copied from class:AbstractR2dbcQuery
Returns whether this query is a modifying one.- Specified by:
isModifyingQuery
in classAbstractR2dbcQuery
- Returns:
-
isCountQuery
protected boolean isCountQuery()Description copied from class:AbstractR2dbcQuery
Returns whether the query should get a count projection applied.- Specified by:
isCountQuery
in classAbstractR2dbcQuery
- Returns:
-
isExistsQuery
protected boolean isExistsQuery()Description copied from class:AbstractR2dbcQuery
Returns whether the query should get an exists projection applied.- Specified by:
isExistsQuery
in classAbstractR2dbcQuery
- Returns:
-
createQuery
protected reactor.core.publisher.Mono<PreparedOperation<?>> createQuery(RelationalParameterAccessor accessor) Description copied from class:AbstractR2dbcQuery
Creates aBindableQuery
instance using the givenParameterAccessor
- Specified by:
createQuery
in classAbstractR2dbcQuery
- Parameters:
accessor
- must not be null.- Returns:
- a mono emitting a
BindableQuery
.
-
toString
-