Interface AccountBankRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<AccountBank,Integer>, org.springframework.data.jpa.repository.JpaRepository<AccountBank,Integer>, org.springframework.data.repository.PagingAndSortingRepository<AccountBank,Integer>, org.springframework.data.repository.query.QueryByExampleExecutor<AccountBank>, org.springframework.data.repository.Repository<AccountBank,Integer>

@Repository public interface AccountBankRepository extends org.springframework.data.jpa.repository.JpaRepository<AccountBank,Integer>
Repository for queries for Account Bank.
  • Method Summary

    Modifier and Type
    Method
    Description
    Select registers by name.
    Select registers by name.
    Select registers by name.

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findAllByUserId

      @Query("SELECT am FROM AccountBank am WHERE am.userId.id = :userId") Optional<List<AccountBank>> findAllByUserId(@Param("userId") String userId)
      Select registers by name.
      Parameters:
      userId - user identifier.
      Returns:
      list of account products by user object from database
    • findByUserIdAndEnable

      @Query("SELECT am FROM AccountBank am WHERE am.userId.id = :userId and am.enabled = true") Optional<AccountBank> findByUserIdAndEnable(@Param("userId") String userId)
      Select registers by name.
      Parameters:
      userId - user identifier.
      Returns:
      list of account products by user object from database
    • findAllByUserIdAndAccountNumber

      @Query("SELECT am FROM AccountBank am WHERE am.userId.id = :userId and am.accountNumber = :accountNumber") Optional<List<AccountBank>> findAllByUserIdAndAccountNumber(@Param("userId") String userId, @Param("accountNumber") String accountNumber)
      Select registers by name.
      Parameters:
      userId - user identifier.
      accountNumber - account number.
      Returns:
      list of account products by user object from database