Interface AdvancedOfferPromotionMessageDao
- All Known Implementing Classes:
AdvancedOfferPromotionMessageDaoImpl
public interface AdvancedOfferPromotionMessageDao
- Author:
- Chris Kittrell (ckittrell)
-
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.
-
Method Details
-
readActiveOffersWithPromotionMessages
List<org.broadleafcommerce.core.offer.domain.Offer> readActiveOffersWithPromotionMessages()- Returns:
- the active offers that have associated PromotionMessages
-
getCurrentDateResolution
Long getCurrentDateResolution()Returns 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.- Returns:
- the milliseconds to cache the current date/time
-
setCurrentDateResolution
Sets 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.- Parameters:
currentDateResolution- the milliseconds to cache the current date/time
-