Interface BankAccountRepositoryJpa
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<BankAccountJpaEntity,Long>,org.springframework.data.jpa.repository.JpaRepository<BankAccountJpaEntity,Long>,org.springframework.data.repository.PagingAndSortingRepository<BankAccountJpaEntity,Long>,org.springframework.data.repository.query.QueryByExampleExecutor<BankAccountJpaEntity>,org.springframework.data.repository.Repository<BankAccountJpaEntity,Long>
@Repository @Profile("jpa") public interface BankAccountRepositoryJpa extends org.springframework.data.jpa.repository.JpaRepository<BankAccountJpaEntity,Long>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<BankAccountJpaEntity>deleteByBankAccessId(String accessId)List<BankAccountJpaEntity>findByUserId(String userId)List<BankAccountJpaEntity>findByUserIdAndBankAccessId(String userId, String bankAccessId)Optional<BankAccountJpaEntity>findByUserIdAndId(String userId, Long id)BankAccount.SyncStatusgetSyncStatus(Long id)intupdateSyncStatus(BankAccount.SyncStatus status, Long id)-
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
-
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
-
-
-
-
Method Detail
-
findByUserId
List<BankAccountJpaEntity> findByUserId(String userId)
-
findByUserIdAndBankAccessId
List<BankAccountJpaEntity> findByUserIdAndBankAccessId(String userId, String bankAccessId)
-
findByUserIdAndId
Optional<BankAccountJpaEntity> findByUserIdAndId(String userId, Long id)
-
deleteByBankAccessId
List<BankAccountJpaEntity> deleteByBankAccessId(String accessId)
-
getSyncStatus
@Query(value="SELECT sync_status FROM bank_account where id = ?1", nativeQuery=true) BankAccount.SyncStatus getSyncStatus(Long id)
-
updateSyncStatus
@Modifying @Query("update bank_account account set account.syncStatus = ?1 where account.id = ?2") int updateSyncStatus(BankAccount.SyncStatus status, Long id)
-
-