Class SimpleQuerydslR2dbcFragment<T>

java.lang.Object
com.infobip.spring.data.r2dbc.SimpleQuerydslR2dbcFragment<T>
All Implemented Interfaces:
QuerydslR2dbcFragment<T>

public class SimpleQuerydslR2dbcFragment<T> extends Object implements QuerydslR2dbcFragment<T>
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    reactor.core.publisher.Mono<Long>
    deleteWhere(com.querydsl.core.types.Predicate predicate)
    Deletes all entities matching the given Predicate.
    com.querydsl.core.types.Expression<T>
    Returns entity projection used for mapping QT to T.
    <O> org.springframework.r2dbc.core.RowsFetchSpec<O>
    query(Function<com.querydsl.sql.SQLQuery<?>,com.querydsl.sql.SQLQuery<O>> query)
     
    reactor.core.publisher.Mono<Long>
    update(Function<com.querydsl.sql.dml.SQLUpdateClause,com.querydsl.sql.dml.SQLUpdateClause> update)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      query in interface QuerydslR2dbcFragment<T>
    • update

      @Transactional public reactor.core.publisher.Mono<Long> update(Function<com.querydsl.sql.dml.SQLUpdateClause,com.querydsl.sql.dml.SQLUpdateClause> update)
      Specified by:
      update in interface QuerydslR2dbcFragment<T>
    • deleteWhere

      @Transactional public reactor.core.publisher.Mono<Long> deleteWhere(com.querydsl.core.types.Predicate predicate)
      Description copied from interface: QuerydslR2dbcFragment
      Deletes all entities matching the given Predicate.
      Specified by:
      deleteWhere in interface QuerydslR2dbcFragment<T>
      Parameters:
      predicate - to match
      Returns:
      amount of affected rows
    • entityProjection

      public com.querydsl.core.types.Expression<T> entityProjection()
      Description copied from interface: QuerydslR2dbcFragment
      Returns entity projection used for mapping QT to T.
      Specified by:
      entityProjection in interface QuerydslR2dbcFragment<T>
      Returns:
      entity projection