Class DefaultCloudCPQOrderEntryProductInfoDao
java.lang.Object
de.hybris.platform.cpq.productconfig.services.impl.DefaultCloudCPQOrderEntryProductInfoDao
- All Implemented Interfaces:
CloudCPQOrderEntryProductInfoDao
public class DefaultCloudCPQOrderEntryProductInfoDao
extends Object
implements CloudCPQOrderEntryProductInfoDao
Default implementation of
DefaultCloudCPQOrderEntryProductInfoDao-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultCloudCPQOrderEntryProductInfoDao(de.hybris.platform.servicelayer.search.FlexibleSearchService flexSearchService, de.hybris.platform.servicelayer.search.paginated.PaginatedFlexibleSearchService paginatedFlexibleSearchService) -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.servicelayer.search.paginated.PaginatedFlexibleSearchParametercreatePageableQuery(de.hybris.platform.servicelayer.search.FlexibleSearchQuery flexibleSearchQuery, int pageSize, int currentPage) getAllConfigurationProductInfos(int pageSize, int currentPage) Fetches allCloudCPQOrderEntryProductInfoModels that have a non null configuration id.getAllConfigurationProductInfosById(String configId) booleanisOnlyRelatedToGivenEntry(AbstractOrderEntryModel entry, String configId)
-
Field Details
-
GET_ALL_PRODUCT_INFOS_BY_CONFIG_ID
- See Also:
-
GET_ALL_PRODUCT_INFOS
- See Also:
-
PARAM_NAME_CONFIG_ID
- See Also:
-
ARGUMENT_CONFIG_ID_CANNOT_BE_NULL
- See Also:
-
ARGUMENT_ENTRY_CANNOT_BE_NULL
- See Also:
-
-
Constructor Details
-
DefaultCloudCPQOrderEntryProductInfoDao
public DefaultCloudCPQOrderEntryProductInfoDao(de.hybris.platform.servicelayer.search.FlexibleSearchService flexSearchService, de.hybris.platform.servicelayer.search.paginated.PaginatedFlexibleSearchService paginatedFlexibleSearchService) - Parameters:
flexSearchService-paginatedFlexibleSearchService-
-
-
Method Details
-
isOnlyRelatedToGivenEntry
- Specified by:
isOnlyRelatedToGivenEntryin interfaceCloudCPQOrderEntryProductInfoDao- Parameters:
entry- entry to compare toconfigId- cpq configuration id- Returns:
true, only if the given configuration id is not related to any other entry than the given one.
-
getAllConfigurationProductInfosById
public List<CloudCPQOrderEntryProductInfoModel> getAllConfigurationProductInfosById(String configId) - Specified by:
getAllConfigurationProductInfosByIdin interfaceCloudCPQOrderEntryProductInfoDao- Parameters:
configId- cpq configuration id- Returns:
- all
CloudCPQOrderEntryProductInfoModels that are linked to the given cpq configuration id
-
getAllConfigurationProductInfos
public SearchPageData<CloudCPQOrderEntryProductInfoModel> getAllConfigurationProductInfos(int pageSize, int currentPage) Description copied from interface:CloudCPQOrderEntryProductInfoDaoFetches allCloudCPQOrderEntryProductInfoModels that have a non null configuration id.- Specified by:
getAllConfigurationProductInfosin interfaceCloudCPQOrderEntryProductInfoDao- Parameters:
pageSize- page sizecurrentPage- current page- Returns:
- pageable result
-
createPageableQuery
protected de.hybris.platform.servicelayer.search.paginated.PaginatedFlexibleSearchParameter createPageableQuery(de.hybris.platform.servicelayer.search.FlexibleSearchQuery flexibleSearchQuery, int pageSize, int currentPage)
-