Class CollectionTemplateImpl
java.lang.Object
com.skava.oms.template.collection.CollectionTemplateImpl
- All Implemented Interfaces:
CollectionTemplate
The class OrderTemplateImpl extends OrderTemplate to handle get order based on different filters.
The getSkuId will find the sku based on the collection id and the user id.
- Author:
- Infosys Equinox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
count
(List<SearchCriteria> fields) This method is used to get total count from DBorg.springframework.data.domain.Page<Collection>
find
(List<SearchCriteria> fields, List<SortCriteria> sort, int page, int size, long businessId, String filters) Debug logger has been added to this method.
-
Constructor Details
-
CollectionTemplateImpl
public CollectionTemplateImpl()
-
-
Method Details
-
find
@Cacheable(cacheNames="collectionByBusinessCache", key="\'businessId_\'+#businessId+\'_filters_\'+#filters+\'_page_\'+#page+\'_size_\'+#size") public org.springframework.data.domain.Page<Collection> find(List<SearchCriteria> fields, List<SortCriteria> sort, int page, int size, long businessId, String filters) Debug logger has been added to this method.- Specified by:
find
in interfaceCollectionTemplate
- Parameters:
fields
- defines the filters.sort
- defines the sort variable to be sortedpage
- defines the page number to be searchedsize
- defines the number of entries to be listed in the pagebusinessId
- defines the business idfilters
- defines the filter variable to be filtered- Returns:
- the Order response.
-
count
This method is used to get total count from DB- Specified by:
count
in interfaceCollectionTemplate
- Parameters:
fields
- defines the filters.- Returns:
- Returns count
-