Modifier and Type | Field and Description |
---|---|
protected Date |
cachedDate |
protected Long |
currentDateResolution |
protected javax.persistence.EntityManager |
em |
protected EntityConfiguration |
entityConfiguration |
Constructor and Description |
---|
OfferDaoImpl() |
protected javax.persistence.EntityManager em
protected EntityConfiguration entityConfiguration
@Value(value="${query.dateResolution.offer:10000}") protected Long currentDateResolution
protected Date cachedDate
protected Date getCurrentDateAfterFactoringInDateResolution()
public OfferInfo createOfferInfo()
createOfferInfo
in interface OfferDao
public CandidateOrderOffer createCandidateOrderOffer()
createCandidateOrderOffer
in interface OfferDao
public CandidateItemOffer createCandidateItemOffer()
createCandidateItemOffer
in interface OfferDao
public CandidateFulfillmentGroupOffer createCandidateFulfillmentGroupOffer()
createCandidateFulfillmentGroupOffer
in interface OfferDao
public OrderItemAdjustment createOrderItemAdjustment()
createOrderItemAdjustment
in interface OfferDao
public OrderItemPriceDetailAdjustment createOrderItemPriceDetailAdjustment()
createOrderItemPriceDetailAdjustment
in interface OfferDao
public OrderAdjustment createOrderAdjustment()
createOrderAdjustment
in interface OfferDao
public FulfillmentGroupAdjustment createFulfillmentGroupAdjustment()
createFulfillmentGroupAdjustment
in interface OfferDao
public ProratedOrderItemAdjustment save(ProratedOrderItemAdjustment adjustment)
public List<Offer> readAllOffers()
readAllOffers
in interface OfferDao
public Offer readOfferById(Long offerId)
readOfferById
in interface OfferDao
public List<Offer> readOffersByAutomaticDeliveryType()
readOffersByAutomaticDeliveryType
in interface OfferDao
public Long getCurrentDateResolution()
OfferDao
getCurrentDateResolution
in interface OfferDao
public void setCurrentDateResolution(Long currentDateResolution)
OfferDao
setCurrentDateResolution
in interface OfferDao
currentDateResolution
- the milliseconds to cache the current date/timeCopyright © 2022. All rights reserved.