Package com.skava.accounts.repository
Interface ApprovalRuleRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<ApprovalRuleEntity,
,Long> org.springframework.data.jpa.repository.JpaRepository<ApprovalRuleEntity,
,Long> org.springframework.data.repository.ListCrudRepository<ApprovalRuleEntity,
,Long> org.springframework.data.repository.ListPagingAndSortingRepository<ApprovalRuleEntity,
,Long> org.springframework.data.repository.PagingAndSortingRepository<ApprovalRuleEntity,
,Long> org.springframework.data.repository.query.QueryByExampleExecutor<ApprovalRuleEntity>
,org.springframework.data.querydsl.QuerydslPredicateExecutor<ApprovalRuleEntity>
,org.springframework.data.repository.Repository<ApprovalRuleEntity,
Long>
public interface ApprovalRuleRepository
extends org.springframework.data.jpa.repository.JpaRepository<ApprovalRuleEntity,Long>, org.springframework.data.querydsl.QuerydslPredicateExecutor<ApprovalRuleEntity>
The Interface ApprovalRuleRepository extends another JpaRepository which
contains all default crud operations. ApprovalRuleRepository contains
customized methods definitions for the operations in ApprovalRule entity.
-
Method Summary
Modifier and TypeMethodDescriptionfindAllByAccountId
(long accountId) To check if a Rule Exists By the given accountId.findByIdAndAccountId
(long id, long accountId) To check if a Rule Exists By the given id and accountId.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, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush
Methods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAll
Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAll
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
Methods inherited from interface org.springframework.data.querydsl.QuerydslPredicateExecutor
count, exists, findAll, findAll, findAll, findAll, findAll, findBy, findOne
-
Method Details
-
findByIdAndAccountId
To check if a Rule Exists By the given id and accountId.- Parameters:
id
- the unique identifier of ApprovalRule.accountId
- 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 ApprovalRule id.- Returns:
- the ApprovalRuleEntity
-
findAllByAccountId
To check if a Rule Exists By the given accountId.- Parameters:
accountId
- 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 collection id.- Returns:
- the ApprovalRuleEntity
-