Class AdvancedOfferPromotionMessageDaoImpl
java.lang.Object
com.broadleafcommerce.advancedoffer.dao.AdvancedOfferPromotionMessageDaoImpl
- All Implemented Interfaces:
AdvancedOfferPromotionMessageDao
@Repository("blAdvancedOfferPromotionMessageDao")
public class AdvancedOfferPromotionMessageDaoImpl
extends Object
implements AdvancedOfferPromotionMessageDao
- Author:
- Chris Kittrell (ckittrell)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the number of milliseconds that the current date/time will be cached for queries before refreshing.List<org.broadleafcommerce.core.offer.domain.Offer>voidsetCurrentDateResolution(Long currentDateResolution) Sets the number of milliseconds that the current date/time will be cached for queries before refreshing.
-
Field Details
-
em
protected jakarta.persistence.EntityManager em -
currentDateResolution
-
cachedDate
-
-
Constructor Details
-
AdvancedOfferPromotionMessageDaoImpl
public AdvancedOfferPromotionMessageDaoImpl()
-
-
Method Details
-
readActiveOffersWithPromotionMessages
- Specified by:
readActiveOffersWithPromotionMessagesin interfaceAdvancedOfferPromotionMessageDao- Returns:
- the active offers that have associated PromotionMessages
-
getCurrentDateResolution
Description copied from interface:AdvancedOfferPromotionMessageDaoReturns the number of milliseconds that the current date/time will be cached for queries before refreshing. This aids in query caching, otherwise every query that utilized current date would be different and caching would be ineffective.- Specified by:
getCurrentDateResolutionin interfaceAdvancedOfferPromotionMessageDao- Returns:
- the milliseconds to cache the current date/time
-
setCurrentDateResolution
Description copied from interface:AdvancedOfferPromotionMessageDaoSets the number of milliseconds that the current date/time will be cached for queries before refreshing. This aids in query caching, otherwise every query that utilized current date would be different and caching would be ineffective.- Specified by:
setCurrentDateResolutionin interfaceAdvancedOfferPromotionMessageDao- Parameters:
currentDateResolution- the milliseconds to cache the current date/time
-