Class OfferDaoImpl
java.lang.Object
org.broadleafcommerce.core.offer.dao.OfferDaoImpl
- All Implemented Interfaces:
OfferDao
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()voidvoidprotected DateReturns the number of milliseconds that the current date/time will be cached for queries before refreshing.readOfferById(Long offerId) save(ProratedOrderItemAdjustment adjustment) 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 -
entityConfiguration
protected org.broadleafcommerce.common.persistence.EntityConfiguration entityConfiguration -
currentDateResolution
-
cachedDate
-
-
Constructor Details
-
OfferDaoImpl
public OfferDaoImpl()
-
-
Method Details
-
getCurrentDateAfterFactoringInDateResolution
-
create
-
createOfferInfo
- Specified by:
createOfferInfoin interfaceOfferDao
-
createCandidateOrderOffer
- Specified by:
createCandidateOrderOfferin interfaceOfferDao
-
createCandidateItemOffer
- Specified by:
createCandidateItemOfferin interfaceOfferDao
-
createCandidateFulfillmentGroupOffer
- Specified by:
createCandidateFulfillmentGroupOfferin interfaceOfferDao
-
createOrderItemAdjustment
- Specified by:
createOrderItemAdjustmentin interfaceOfferDao
-
createOrderItemPriceDetailAdjustment
- Specified by:
createOrderItemPriceDetailAdjustmentin interfaceOfferDao
-
createOrderAdjustment
- Specified by:
createOrderAdjustmentin interfaceOfferDao
-
createFulfillmentGroupAdjustment
- Specified by:
createFulfillmentGroupAdjustmentin interfaceOfferDao
-
delete
-
delete
-
save
-
save
-
save
-
readAllOffers
- Specified by:
readAllOffersin interfaceOfferDao
-
readOfferById
- Specified by:
readOfferByIdin interfaceOfferDao
-
readOffersByAutomaticDeliveryType
- Specified by:
readOffersByAutomaticDeliveryTypein interfaceOfferDao
-
getCurrentDateResolution
Description copied from interface:OfferDaoReturns 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 interfaceOfferDao- Returns:
- the milliseconds to cache the current date/time
-
setCurrentDateResolution
Description copied from interface:OfferDaoSets 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 interfaceOfferDao- Parameters:
currentDateResolution- the milliseconds to cache the current date/time
-