Class DefaultGenericDao<M extends ItemModel>
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao<M>
- All Implemented Interfaces:
GenericDao<M>
- Direct Known Subclasses:
AbstractAsGenericDao,AbstractCxDao,ChineseProfileServicesDao,DefaultAcceleratorConsignmentDao,DefaultAddressDao,DefaultAlipayOrderDao,DefaultAlipayPaymentTransactionDao,DefaultAlipayPaymentTransactionEntryDao,DefaultB2BAcceleratorCartToOrderCronJobModelDao,DefaultB2BBookingLineEntryDao,DefaultB2BBudgetDao,DefaultB2BCommentDao,DefaultB2BCostCenterDao,DefaultB2BDocumentDao,DefaultB2BDocumentPaymentInfoDao,DefaultB2BDocumentTypeDao,DefaultB2BOrderDao,DefaultB2BPermissionDao,DefaultB2BUnitDao,DefaultB2BWorkflowActionDao,DefaultB2BWorkflowDao,DefaultBackInStockProductInterestDao,DefaultCampaignDao,DefaultCartToOrderCronJobModelDao,DefaultCatalogDao,DefaultCityDao,DefaultClassificationSystemDao,DefaultClassificationSystemVersionDao,DefaultClientDetailsDao,DefaultCockpitConfigurationDao,DefaultCockpitObjectAbstractCollectionDao,DefaultCodeGenerationConfigurationDao,DefaultCommerceOrderDao,DefaultCommerceQuoteDao,DefaultConsentDao,DefaultConsentTemplateDao,DefaultConsignmentDao,DefaultConversationDao,DefaultCountryDao,DefaultCouponNotificationDao,DefaultCouponRedemptionDao,DefaultCronJobDao,DefaultCronJobHistoryDao,DefaultCurrencyDao,DefaultCustomerCouponDao,DefaultCustomerDao,DefaultCustomerVendorReviewDao,DefaultDistrictDao,DefaultEmailAddressDao,DefaultExternalScopesDao,DefaultFlashBuyDao,DefaultFutureStockDao,DefaultJobDao,DefaultJobLogDao,DefaultLanguageDao,DefaultMerchIndexingConfigDao,DefaultMerchProductDirectoryConfigDao,DefaultMerchSynchronizationConfigDao,DefaultMerchSynchronizationDao,DefaultNotifyCustomerDao,DefaultOrderFormDao,DefaultPaymentModeDao,DefaultProductDao,DefaultProductInterestDao,DefaultProductReferencesDao,DefaultPunchOutCredentialDao,DefaultRegionDao,DefaultRendererTemplateDao,DefaultRuleBasedPromotionActionDao,DefaultSavedQueryDao,DefaultSearchRestrictionDao,DefaultSelectiveCartDao,DefaultSiteMessageDao,DefaultSnClassAttributeAssignmentModelDao,DefaultSnClassificationAttributeAssignmentModelDao,DefaultSnFieldDao,DefaultSnIndexConfigurationDao,DefaultSnIndexTypeDao,DefaultSnSynonymDictionaryDao,DefaultSolrFacetSearchConfigDao,DefaultSolrIndexDao,DefaultSolrIndexedPropertyDao,DefaultSolrIndexedTypeDao,DefaultSolrIndexOperationDao,DefaultSolrServerConfigDao,DefaultTitleDao,DefaultUnitDao,DefaultUserDao,DefaultUserGroupDao,DefaultVariantTypeDao,DefaultVendorDao,DefaultWarehouseDao,DefaultWeChatPayOrderDao,DefaultWeChatPayPaymentTransactionDao,DefaultWeChatPayPaymentTransactionEntryDao,DefaultWorkflowActionDao,DefaultWorkflowDao,DefaultWorkflowTemplateDao,DefaultZoneDeliveryModeValueDao
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultGenericDao(String typecode) DefaultGenericDao is only usable when typecode is set. -
Method Summary
Modifier and TypeMethodDescriptionfind()Searches for all instances of model given as a generic type.find(SortParameters sortParams) Searches for all instances of model given as a generic type using givenSortParametersto sort results.Searches for all instances of model given as a generic type matching given parameters.find(Map<String, ? extends Object> params, SortParameters sortParams) Searches for all instances of model given as a generic type matching given parameters using givenSortParametersto sort results.find(Map<String, ? extends Object> params, SortParameters sortParams, int count) Searches for maximum ofcountinstances of model given as a generic type matching given parameters using givenSortParametersto sort results.protected FlexibleSearchServiceAccessor for aFlexibleSearchServicewhich might be helpful on higher levels of the class hierarchy.voidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService)
-
Constructor Details
-
DefaultGenericDao
DefaultGenericDao is only usable when typecode is set.
-
-
Method Details
-
find
Description copied from interface:GenericDaoSearches for all instances of model given as a generic type.- Specified by:
findin interfaceGenericDao<M extends ItemModel>- Returns:
- List of all instances of model given as a generic type.
-
find
Description copied from interface:GenericDaoSearches for all instances of model given as a generic type matching given parameters.- Specified by:
findin interfaceGenericDao<M extends ItemModel>- Parameters:
params- parameters to add to search query asMapwith parameter name as a key and parameter value as a value.
-
find
Description copied from interface:GenericDaoSearches for all instances of model given as a generic type using givenSortParametersto sort results.- Specified by:
findin interfaceGenericDao<M extends ItemModel>- Parameters:
sortParams-SortParametersobject used to sort results.- Returns:
- List of all instances of model given as a generic type sorted using
SortParameters.
-
find
Description copied from interface:GenericDaoSearches for all instances of model given as a generic type matching given parameters using givenSortParametersto sort results.- Specified by:
findin interfaceGenericDao<M extends ItemModel>- Parameters:
params- parameters to add to search query asMapwith parameter name as a key and parameter value as a value.sortParams-SortParametersobject used to sort results.
-
find
Description copied from interface:GenericDaoSearches for maximum ofcountinstances of model given as a generic type matching given parameters using givenSortParametersto sort results.- Specified by:
findin interfaceGenericDao<M extends ItemModel>- Parameters:
params- parameters to add to search query asMapwith parameter name as a key and parameter value as a value.sortParams-SortParametersobject used to sort results.
-
setFlexibleSearchService
-
getFlexibleSearchService
Accessor for aFlexibleSearchServicewhich might be helpful on higher levels of the class hierarchy.- Returns:
- the flexibleSearchService
-