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
ConstructorsConstructorDescriptionPartTreeR2dbcQuery(R2dbcQueryMethod method, R2dbcEntityOperations entityOperations, R2dbcConverter converter, ReactiveDataAccessStrategy dataAccessStrategy) Creates new instance of this class with the givenR2dbcQueryMethod,DatabaseClient,R2dbcConverterandReactiveDataAccessStrategy. -
Method Summary
Modifier and TypeMethodDescriptionprotected reactor.core.publisher.Mono<org.springframework.r2dbc.core.PreparedOperation<?>>createQuery(RelationalParameterAccessor accessor) Creates aBindableQueryinstance using the givenParameterAccessorprotected booleanReturns whether the query should get a count projection applied.protected booleanReturns whether the query should get an exists projection applied.protected booleanReturns 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,R2dbcConverterandReactiveDataAccessStrategy.- 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:AbstractR2dbcQueryReturns whether this query is a modifying one.- Specified by:
isModifyingQueryin classAbstractR2dbcQuery- Returns:
-
isCountQuery
protected boolean isCountQuery()Description copied from class:AbstractR2dbcQueryReturns whether the query should get a count projection applied.- Specified by:
isCountQueryin classAbstractR2dbcQuery- Returns:
-
isExistsQuery
protected boolean isExistsQuery()Description copied from class:AbstractR2dbcQueryReturns whether the query should get an exists projection applied.- Specified by:
isExistsQueryin classAbstractR2dbcQuery- Returns:
-
createQuery
protected reactor.core.publisher.Mono<org.springframework.r2dbc.core.PreparedOperation<?>> createQuery(RelationalParameterAccessor accessor) Description copied from class:AbstractR2dbcQueryCreates aBindableQueryinstance using the givenParameterAccessor- Specified by:
createQueryin classAbstractR2dbcQuery- Parameters:
accessor- must not be null.- Returns:
- a mono emitting a
BindableQuery.
-
toString
-