Package com.skava.accounts.repository
Interface AccountSellerRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<AccountSellerEntity,
,Long> org.springframework.data.repository.Repository<AccountSellerEntity,
Long>
public interface AccountSellerRepository
extends org.springframework.data.repository.CrudRepository<AccountSellerEntity,Long>
The Interface AccountSellerRepository extends another CrudRepository which contains all default crud operations.
AccountSellerRepository contains customized methods definitions for the operations in AccountSeller entity.
- Author:
- Infosys Equinox
-
Method Summary
Modifier and TypeMethodDescriptionboolean
existsByIdAndAccountId
(long id, long accountId) Exists by id and accountIdd.org.springframework.data.domain.Page<AccountSellerEntity>
findAccountIdByUserId
(String userId, org.springframework.data.domain.Pageable pageRequest) org.springframework.data.domain.Page<AccountSellerEntity>
findAll
(org.springframework.data.jpa.domain.Specification<AccountsEntity> specification, org.springframework.data.domain.Pageable pageRequest) Find all.org.springframework.data.domain.Page<AccountSellerEntity>
findAllByAccountId
(org.springframework.data.domain.Pageable pageRequest, Long accountId) Find all by collection id.findByIdAndAccountId
(long id, Long accountId) Find by id and accountId.Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll
-
Method Details
-
findAll
org.springframework.data.domain.Page<AccountSellerEntity> findAll(org.springframework.data.jpa.domain.Specification<AccountsEntity> specification, org.springframework.data.domain.Pageable pageRequest) Find all.- Parameters:
specification
- contains all search criteria like accountId=1, teamId=2pageRequest
- contains pageable information like page, size.- Returns:
- the list of AccountSellerEntity
-
findByIdAndAccountId
Find by id and accountId.- Parameters:
id
- the idaccountId
- It refers to the id of the account which is a unique identifier. An account should exists for the given account id, and also the account should be associated with the given AccountSeller id.- Returns:
- the AccountSellerEntity
-
findAllByAccountId
org.springframework.data.domain.Page<AccountSellerEntity> findAllByAccountId(org.springframework.data.domain.Pageable pageRequest, Long accountId) Find all by collection id.- Parameters:
pageRequest
- the page requestaccountId
- It refers to the id of the account which is a unique identifier. An account should exists for the given account id, and also the account should be associated with the given AccountSeller id.- Returns:
- the AccountSellerEntity
-
existsByIdAndAccountId
boolean existsByIdAndAccountId(long id, long accountId) Exists by id and accountIdd.- Parameters:
id
- the AccountSelleraccountId
- It refers to the id of the account which is a unique identifier. An account should exists for the given account id, and also the account should be associated with the given AccountSeller id.- Returns:
- true, if successful
-
findAccountIdByUserId
org.springframework.data.domain.Page<AccountSellerEntity> findAccountIdByUserId(String userId, org.springframework.data.domain.Pageable pageRequest) - Parameters:
userId
- the userIdpageRequest
- contains pageable information like page, size- Returns:
- the AccountSellerEntity
-