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 Details

    • em

      protected jakarta.persistence.EntityManager em
    • currentDateResolution

      protected Long currentDateResolution
    • cachedDate

      protected Date cachedDate
  • Constructor Details

    • AdvancedOfferPromotionMessageDaoImpl

      public AdvancedOfferPromotionMessageDaoImpl()
  • Method Details

    • readActiveOffersWithPromotionMessages

      public List<org.broadleafcommerce.core.offer.domain.Offer> readActiveOffersWithPromotionMessages()
      Specified by:
      readActiveOffersWithPromotionMessages in interface AdvancedOfferPromotionMessageDao
      Returns:
      the active offers that have associated PromotionMessages
    • getCurrentDateResolution

      public Long getCurrentDateResolution()
      Description copied from interface: AdvancedOfferPromotionMessageDao
      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.
      Specified by:
      getCurrentDateResolution in interface AdvancedOfferPromotionMessageDao
      Returns:
      the milliseconds to cache the current date/time
    • setCurrentDateResolution

      public void setCurrentDateResolution(Long currentDateResolution)
      Description copied from interface: AdvancedOfferPromotionMessageDao
      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.
      Specified by:
      setCurrentDateResolution in interface AdvancedOfferPromotionMessageDao
      Parameters:
      currentDateResolution - the milliseconds to cache the current date/time