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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<DepositAccount>findAllByIbanAndCurrencyContaining(String iban, String currency)List<DepositAccount>findByBranch(String branch)org.springframework.data.domain.Page<DepositAccount>findByBranchAndIbanContaining(String branch, String queryParam, org.springframework.data.domain.Pageable pageable)org.springframework.data.domain.Page<DepositAccount>findByBranchInAndIbanContainingAndBlockedInAndSystemBlockedFalse(Collection<String> branchIds, String iban, List<Boolean> blocked, org.springframework.data.domain.Pageable pageable)Optional<DepositAccount>findByIbanAndCurrency(String iban, String currency)voidupdateBlockedStatus(String userId, boolean lockStatusToSet)voidupdateBlockedStatus(Set<String> accountIds, boolean lockStatusToSet)voidupdateSystemBlockedStatus(String userId, boolean lockStatusToSet)voidupdateSystemBlockedStatus(Set<String> accountIds, boolean lockStatusToSet)
-
-
-
Method Detail
-
findByBranch
List<DepositAccount> findByBranch(String branch)
-
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)
-
findByIbanAndCurrency
Optional<DepositAccount> findByIbanAndCurrency(String iban, String currency)
-
findAllByIbanAndCurrencyContaining
List<DepositAccount> findAllByIbanAndCurrencyContaining(String iban, String currency)
-
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)
-
-