Package org.nentangso.core.repository
Interface NtsUserRepository
-
- All Superinterfaces:
org.springframework.data.r2dbc.repository.R2dbcRepository<NtsUserEntity,String>,org.springframework.data.repository.reactive.ReactiveCrudRepository<NtsUserEntity,String>,org.springframework.data.repository.query.ReactiveQueryByExampleExecutor<NtsUserEntity>,org.springframework.data.repository.reactive.ReactiveSortingRepository<NtsUserEntity,String>,org.springframework.data.repository.Repository<NtsUserEntity,String>
@Repository public interface NtsUserRepository extends org.springframework.data.r2dbc.repository.R2dbcRepository<NtsUserEntity,String>
Spring Data R2DBC repository for theNtsUserEntityentity.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description reactor.core.publisher.Mono<Long>count()reactor.core.publisher.Mono<NtsUserEntity>create(NtsUserEntity user)reactor.core.publisher.Mono<Void>deleteAllUserAuthorities()reactor.core.publisher.Mono<Void>deleteUserAuthorities(String userId)reactor.core.publisher.Flux<NtsUserEntity>findAllByIdNotNull(org.springframework.data.domain.Pageable pageable)reactor.core.publisher.Flux<NtsUserEntity>findAllByIdNotNullAndActivatedIsTrue(org.springframework.data.domain.Pageable pageable)reactor.core.publisher.Flux<NtsUserEntity>findAllWithAuthorities(org.springframework.data.domain.Pageable pageable)reactor.core.publisher.Mono<NtsUserEntity>findOneByLogin(String login)reactor.core.publisher.Mono<NtsUserEntity>findOneWithAuthoritiesByLogin(String login)reactor.core.publisher.Mono<Void>saveUserAuthority(String userId, String authority)-
Methods inherited from interface org.springframework.data.repository.reactive.ReactiveCrudRepository
delete, deleteAll, deleteAll, deleteAll, deleteAllById, deleteById, deleteById, existsById, existsById, findAll, findAllById, findAllById, findById, findById, save, saveAll, saveAll
-
-
-
-
Method Detail
-
findOneByLogin
reactor.core.publisher.Mono<NtsUserEntity> findOneByLogin(String login)
-
findAllByIdNotNull
reactor.core.publisher.Flux<NtsUserEntity> findAllByIdNotNull(org.springframework.data.domain.Pageable pageable)
-
findAllByIdNotNullAndActivatedIsTrue
reactor.core.publisher.Flux<NtsUserEntity> findAllByIdNotNullAndActivatedIsTrue(org.springframework.data.domain.Pageable pageable)
-
count
reactor.core.publisher.Mono<Long> count()
- Specified by:
countin interfaceorg.springframework.data.repository.reactive.ReactiveCrudRepository<NtsUserEntity,String>
-
saveUserAuthority
@Query("INSERT INTO nts_user_authorities VALUES(:userId, :authority)") reactor.core.publisher.Mono<Void> saveUserAuthority(String userId, String authority)
-
deleteAllUserAuthorities
@Query("DELETE FROM nts_user_authorities") reactor.core.publisher.Mono<Void> deleteAllUserAuthorities()
-
deleteUserAuthorities
@Query("DELETE FROM nts_user_authorities WHERE user_id = :userId") reactor.core.publisher.Mono<Void> deleteUserAuthorities(String userId)
-
findOneWithAuthoritiesByLogin
reactor.core.publisher.Mono<NtsUserEntity> findOneWithAuthoritiesByLogin(String login)
-
create
reactor.core.publisher.Mono<NtsUserEntity> create(NtsUserEntity user)
-
findAllWithAuthorities
reactor.core.publisher.Flux<NtsUserEntity> findAllWithAuthorities(org.springframework.data.domain.Pageable pageable)
-
-