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,B2BInvoiceDaoImpl,ChineseProfileServicesDao,DefaultAcceleratorConsignmentDao,DefaultAddressDao,DefaultAlipayOrderDao,DefaultAlipayPaymentTransactionDao,DefaultAlipayPaymentTransactionEntryDao,DefaultB2BAcceleratorCartToOrderCronJobModelDao,DefaultB2BBookingLineEntryDao,DefaultB2BBudgetDao,DefaultB2BCommentDao,DefaultB2BCostCenterDao,DefaultB2BDocumentDao,DefaultB2BDocumentPaymentInfoDao,DefaultB2BDocumentTypeDao,DefaultB2BFutureStockDao,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,DefaultImportCockpitMappingDao,DefaultJobDao,DefaultJobLogDao,DefaultLanguageDao,DefaultMerchIndexingConfigDao,DefaultMerchSynchronizationConfigDao,DefaultNotifyCustomerDao,DefaultOrderFormDao,DefaultPaymentModeDao,DefaultProductDao,DefaultProductInterestDao,DefaultProductReferencesDao,DefaultPunchOutCredentialDao,DefaultRegionDao,DefaultRendererTemplateDao,DefaultRuleBasedPromotionActionDao,DefaultSapSubscriptionProductDao,DefaultSavedQueryDao,DefaultSearchRestrictionDao,DefaultSelectiveCartDao,DefaultSiteMessageDao,DefaultSolrFacetSearchConfigDao,DefaultSolrIndexDao,DefaultSolrIndexedPropertyDao,DefaultSolrIndexedTypeDao,DefaultSolrIndexOperationDao,DefaultSolrServerConfigDao,DefaultTitleDao,DefaultUnitDao,DefaultUserDao,DefaultUserGroupDao,DefaultVariantTypeDao,DefaultVendorDao,DefaultWarehouseDao,DefaultWeChatPayOrderDao,DefaultWeChatPayPaymentTransactionDao,DefaultWeChatPayPaymentTransactionEntryDao,DefaultWorkflowActionDao,DefaultWorkflowDao,DefaultWorkflowTemplateDao,DefaultZoneDeliveryModeValueDao
public class DefaultGenericDao<M extends ItemModel> extends java.lang.Object implements GenericDao<M>
-
-
Constructor Summary
Constructors Constructor Description DefaultGenericDao(java.lang.String typecode)DefaultGenericDao is only usable when typecode is set.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<M>find()Searches for all instances of model given as a generic type.java.util.List<M>find(SortParameters sortParams)Searches for all instances of model given as a generic type using givenSortParametersto sort results.java.util.List<M>find(java.util.Map<java.lang.String,? extends java.lang.Object> params)Searches for all instances of model given as a generic type matching given parameters.java.util.List<M>find(java.util.Map<java.lang.String,? extends java.lang.Object> params, SortParameters sortParams)Searches for all instances of model given as a generic type matching given parameters using givenSortParametersto sort results.java.util.List<M>find(java.util.Map<java.lang.String,? extends java.lang.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 FlexibleSearchServicegetFlexibleSearchService()Accessor for aFlexibleSearchServicewhich might be helpful on higher levels of the class hierarchy.voidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService)
-
-
-
Method Detail
-
find
public java.util.List<M> 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
public java.util.List<M> find(java.util.Map<java.lang.String,? extends java.lang.Object> params)
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
public java.util.List<M> find(SortParameters sortParams)
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
public java.util.List<M> find(java.util.Map<java.lang.String,? extends java.lang.Object> params, SortParameters sortParams)
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
public java.util.List<M> find(java.util.Map<java.lang.String,? extends java.lang.Object> params, SortParameters sortParams, int count)
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
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
-
getFlexibleSearchService
protected FlexibleSearchService getFlexibleSearchService()
Accessor for aFlexibleSearchServicewhich might be helpful on higher levels of the class hierarchy.- Returns:
- the flexibleSearchService
-
-