Class DefaultCampaignDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao<CampaignModel>
de.hybris.platform.campaigns.dao.impl.DefaultCampaignDao
- All Implemented Interfaces:
CampaignDao,GenericDao<CampaignModel>
Default implementation of
CampaignDao-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindActiveCampaigns(Date currentDateTime) Provides list of all active campaigns.Provides list of all campaigns.findCampaignByCode(String code) ProvidesCampaignModelwith requestedCampaignModel.CODEMethods inherited from class de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao
find, find, find, find, find, getFlexibleSearchService, setFlexibleSearchService
-
Constructor Details
-
DefaultCampaignDao
public DefaultCampaignDao()
-
-
Method Details
-
findActiveCampaigns
Description copied from interface:CampaignDaoProvides list of all active campaigns. Campaign is considered as active when it hasCampaignModel.ENABLEDeq true and the currentDateTime provided as a parameter is betweenCampaignModel.STARTDATEandCampaignModel.ENDDATEinclusive. When the value ofCampaignModel.STARTDATEorCampaignModel.ENDDATEis not set then this value is considered as within date range.- Specified by:
findActiveCampaignsin interfaceCampaignDao- Parameters:
currentDateTime- - Current date time that is used to get active campaign for- Returns:
- list of active
CampaignModels.
-
findCampaignByCode
Description copied from interface:CampaignDaoProvidesCampaignModelwith requestedCampaignModel.CODE- Specified by:
findCampaignByCodein interfaceCampaignDao- Returns:
- matching
CampaignModel
-
findAllCampaigns
Description copied from interface:CampaignDaoProvides list of all campaigns.- Specified by:
findAllCampaignsin interfaceCampaignDao- Returns:
- list of all
CampaignModels.
-