Package com.skava.promotion.repository
Interface PromotionListRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<PromotionList,,CommonId> org.springframework.data.repository.ListCrudRepository<PromotionList,,CommonId> org.springframework.data.repository.ListPagingAndSortingRepository<PromotionList,,CommonId> org.springframework.data.mongodb.repository.MongoRepository<PromotionList,,CommonId> org.springframework.data.repository.PagingAndSortingRepository<PromotionList,,CommonId> org.springframework.data.repository.query.QueryByExampleExecutor<PromotionList>,org.springframework.data.querydsl.QuerydslPredicateExecutor<PromotionList>,org.springframework.data.repository.Repository<PromotionList,CommonId>
@Service
public interface PromotionListRepository
extends org.springframework.data.mongodb.repository.MongoRepository<PromotionList,CommonId>, org.springframework.data.querydsl.QuerydslPredicateExecutor<PromotionList>
This interface contains the functionality to perform operations on promo code list property attributes
- Since:
- 8.0
- Version:
- 8.0
- Author:
- Infosys Equinox
-
Method Summary
Modifier and TypeMethodDescriptionfindAllByIdCollectionIdAndArchiveAndStatusAndIdVersion(long collectionId, Archive archive, com.skava.core.rules.admin.model.Status status, String version) Finds all promotion list by collection id and archive and status and version.default Optional<PromotionList>findByIdAndArchive(CommonId id, Archive archive) Provides a functionality to load promotion lists based on given requestMethods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.mongodb.repository.MongoRepository
findAll, findAll, insert, insertMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOneMethods inherited from interface org.springframework.data.querydsl.QuerydslPredicateExecutor
count, exists, findAll, findAll, findAll, findAll, findAll, findBy, findOne
-
Method Details
-
findByIdAndArchive
Provides a functionality to load promotion lists based on given request- Parameters:
id- Identifier of the project. An instance ofCommonIdarchive- Holds the archive Field- Returns:
- Instance of
PromotionList
-
findAllByIdCollectionIdAndArchiveAndStatusAndIdVersion
List<PromotionList> findAllByIdCollectionIdAndArchiveAndStatusAndIdVersion(long collectionId, Archive archive, com.skava.core.rules.admin.model.Status status, String version) Finds all promotion list by collection id and archive and status and version.- Parameters:
collectionId- An unique id of the collection, where the list has to residearchive- Holds the promotion list state to identify whether the list is archive or unarchivestatus- Holds the promotion list status to identify whether the list is in active or inactive stateversion- Holds the version value. Default version value is "default"- Returns:
- Instance of list of
PromotionList
-