Package com.skava.accounts.repository
Interface CollectionsRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<CollectionsEntity,
,Long> org.springframework.data.jpa.repository.JpaRepository<CollectionsEntity,
,Long> org.springframework.data.repository.ListCrudRepository<CollectionsEntity,
,Long> org.springframework.data.repository.ListPagingAndSortingRepository<CollectionsEntity,
,Long> org.springframework.data.repository.PagingAndSortingRepository<CollectionsEntity,
,Long> org.springframework.data.repository.query.QueryByExampleExecutor<CollectionsEntity>
,org.springframework.data.querydsl.QuerydslPredicateExecutor<CollectionsEntity>
,org.springframework.data.repository.Repository<CollectionsEntity,
Long>
public interface CollectionsRepository
extends org.springframework.data.jpa.repository.JpaRepository<CollectionsEntity,Long>, org.springframework.data.querydsl.QuerydslPredicateExecutor<CollectionsEntity>
The Interface CollectionsRepository extends another JpaRepository which contains all default crud operations.
CollectionsRepository contains customized methods definitions for the operations in Collection entity.
- Author:
- Infosys Equinox
-
Method Summary
Modifier and TypeMethodDescriptionboolean
existsByIdAndBussinessId
(long id, long businessId) boolean
existsByNameIgnoreCaseAndBussinessId
(String name, long businessId) org.springframework.data.domain.Page<CollectionsEntity>
findAll
(org.springframework.data.jpa.domain.Specification<CollectionsEntity> specification, org.springframework.data.domain.Pageable pageRequest) Find all CollectionsEntity based on the inputs.findByIdAndBussinessId
(long id, long businessId) Find CollectionsEntity based on id and businessId.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
-
findAll
org.springframework.data.domain.Page<CollectionsEntity> findAll(org.springframework.data.jpa.domain.Specification<CollectionsEntity> specification, org.springframework.data.domain.Pageable pageRequest) Find all CollectionsEntity based on the inputs.- Parameters:
specification
- contains all search criteria like accountId=1, teamId=2pageRequest
- contains pageable information like page, size- Returns:
- the list of CollectionsEntity
-
findByIdAndBussinessId
Find CollectionsEntity based on id and businessId.- Parameters:
id
- unique identifier of the collectionbusinessId
- unique identifier of business- Returns:
- the CollectionsEntity
-
existsByIdAndBussinessId
boolean existsByIdAndBussinessId(long id, long businessId) - Parameters:
id
- unique identifier of the collectionbusinessId
- unique identifier of the business- Returns:
- true, if successful
-
existsByNameIgnoreCaseAndBussinessId
- Parameters:
name
- name of the collectionbusinessId
- id of the business- Returns:
- true, if successful
-