Package com.skava.list.repository
Interface ListCollectionRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<CollectionEntity,
,Long> org.springframework.data.repository.ListCrudRepository<CollectionEntity,
,Long> org.springframework.data.repository.ListPagingAndSortingRepository<CollectionEntity,
,Long> org.springframework.data.mongodb.repository.MongoRepository<CollectionEntity,
,Long> org.springframework.data.repository.PagingAndSortingRepository<CollectionEntity,
,Long> org.springframework.data.repository.query.QueryByExampleExecutor<CollectionEntity>
,org.springframework.data.querydsl.QuerydslPredicateExecutor<CollectionEntity>
,org.springframework.data.repository.Repository<CollectionEntity,
Long>
public interface ListCollectionRepository
extends org.springframework.data.mongodb.repository.MongoRepository<CollectionEntity,Long>, org.springframework.data.querydsl.QuerydslPredicateExecutor<CollectionEntity>
CollectionAttributeRepository class
This class contain constants that are used to the interface list collection repository.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionboolean
existsByBusinessIdAndNameIgnoreCase
(long businessId, String name) boolean
existsByBusinessIdAndNameIgnoreCaseAndIdNot
(long businessId, String name, long id) org.springframework.data.domain.Page<CollectionEntity>
findAll
(org.springframework.data.domain.Pageable pageRequest) Find all.findByIdAndBusinessId
(long id, long 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.repository.ListCrudRepository
findAll, findAllById, saveAll
Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAll
Methods inherited from interface org.springframework.data.mongodb.repository.MongoRepository
findAll, findAll, insert, insert
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
-
Field Details
-
root
-
-
Method Details
-
findAll
org.springframework.data.domain.Page<CollectionEntity> findAll(org.springframework.data.domain.Pageable pageRequest) Find all.- Specified by:
findAll
in interfaceorg.springframework.data.repository.PagingAndSortingRepository<CollectionEntity,
Long> - Parameters:
pageRequest
- the page request- Returns:
- the page
-
findByIdAndBusinessId
-
existsByBusinessIdAndNameIgnoreCase
@ExistsQuery("{\'businessId\': ?0, \'name\': /^?1$/i}") boolean existsByBusinessIdAndNameIgnoreCase(long businessId, String name) -
existsByBusinessIdAndNameIgnoreCaseAndIdNot
@ExistsQuery("{\'businessId\': ?0, \'name\': /^?1$/i, \'_id\': {$ne: ?2}}") boolean existsByBusinessIdAndNameIgnoreCaseAndIdNot(long businessId, String name, long id)
-