Interface DepositAccountRepository

  • All Superinterfaces:
    org.springframework.data.repository.CrudRepository<DepositAccount,​String>, org.springframework.data.repository.PagingAndSortingRepository<DepositAccount,​String>, org.springframework.data.repository.Repository<DepositAccount,​String>

    public interface DepositAccountRepository
    extends org.springframework.data.repository.PagingAndSortingRepository<DepositAccount,​String>
    • Method Detail

      • findByBranchAndIbanContaining

        org.springframework.data.domain.Page<DepositAccount> findByBranchAndIbanContaining​(String branch,
                                                                                           String queryParam,
                                                                                           org.springframework.data.domain.Pageable pageable)
      • findByBranchInAndIbanContainingAndBlockedInAndSystemBlockedFalse

        org.springframework.data.domain.Page<DepositAccount> findByBranchInAndIbanContainingAndBlockedInAndSystemBlockedFalse​(Collection<String> branchIds,
                                                                                                                              String iban,
                                                                                                                              List<Boolean> blocked,
                                                                                                                              org.springframework.data.domain.Pageable pageable)
      • updateSystemBlockedStatus

        @Query("update DepositAccount a set a.systemBlocked=?2 where a.branch=?1")
        void updateSystemBlockedStatus​(String userId,
                                       boolean lockStatusToSet)
      • updateBlockedStatus

        @Modifying
        @Query("update DepositAccount a set a.blocked=?2 where a.branch=?1")
        void updateBlockedStatus​(String userId,
                                 boolean lockStatusToSet)
      • updateSystemBlockedStatus

        @Query("update DepositAccount da set da.systemBlocked=?2 where da.id in ?1")
        void updateSystemBlockedStatus​(Set<String> accountIds,
                                       boolean lockStatusToSet)
      • updateBlockedStatus

        @Modifying
        @Query("update DepositAccount da set da.blocked=?2 where da.id in ?1")
        void updateBlockedStatus​(Set<String> accountIds,
                                 boolean lockStatusToSet)