Package com.infobip.spring.data.r2dbc
Class SimpleQuerydslR2dbcFragment<T>
java.lang.Object
com.infobip.spring.data.r2dbc.SimpleQuerydslR2dbcFragment<T>
- All Implemented Interfaces:
QuerydslR2dbcFragment<T>
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleQuerydslR2dbcFragment(com.querydsl.sql.SQLQueryFactory sqlQueryFactory, com.querydsl.core.types.ConstructorExpression<T> constructorExpression, com.querydsl.sql.RelationalPath<?> path, org.springframework.r2dbc.core.DatabaseClient databaseClient, org.springframework.data.r2dbc.convert.R2dbcConverter converter, com.infobip.spring.data.r2dbc.QuerydslParameterBinder querydslParameterBinder) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Long>deleteWhere(com.querydsl.core.types.Predicate predicate) Deletes all entities matching the givenPredicate.com.querydsl.core.types.Expression<T>Returns entity projection used for mappingQTtoT.<O> org.springframework.r2dbc.core.RowsFetchSpec<O>reactor.core.publisher.Mono<Long>
-
Constructor Details
-
SimpleQuerydslR2dbcFragment
public SimpleQuerydslR2dbcFragment(com.querydsl.sql.SQLQueryFactory sqlQueryFactory, com.querydsl.core.types.ConstructorExpression<T> constructorExpression, com.querydsl.sql.RelationalPath<?> path, org.springframework.r2dbc.core.DatabaseClient databaseClient, org.springframework.data.r2dbc.convert.R2dbcConverter converter, com.infobip.spring.data.r2dbc.QuerydslParameterBinder querydslParameterBinder)
-
-
Method Details
-
query
public <O> org.springframework.r2dbc.core.RowsFetchSpec<O> query(Function<com.querydsl.sql.SQLQuery<?>, com.querydsl.sql.SQLQuery<O>> query) - Specified by:
queryin interfaceQuerydslR2dbcFragment<T>
-
update
@Transactional public reactor.core.publisher.Mono<Long> update(Function<com.querydsl.sql.dml.SQLUpdateClause, com.querydsl.sql.dml.SQLUpdateClause> update) - Specified by:
updatein interfaceQuerydslR2dbcFragment<T>
-
deleteWhere
@Transactional public reactor.core.publisher.Mono<Long> deleteWhere(com.querydsl.core.types.Predicate predicate) Description copied from interface:QuerydslR2dbcFragmentDeletes all entities matching the givenPredicate.- Specified by:
deleteWherein interfaceQuerydslR2dbcFragment<T>- Parameters:
predicate- to match- Returns:
- amount of affected rows
-
entityProjection
Description copied from interface:QuerydslR2dbcFragmentReturns entity projection used for mappingQTtoT.- Specified by:
entityProjectionin interfaceQuerydslR2dbcFragment<T>- Returns:
- entity projection
-