org.broadleafcommerce.core.offer.dao
Interface OfferDao

All Known Implementing Classes:
OfferDaoImpl

public interface OfferDao


Method Summary
 Offer create()
           
 CandidateFulfillmentGroupOffer createCandidateFulfillmentGroupOffer()
           
 CandidateItemOffer createCandidateItemOffer()
           
 CandidateOrderOffer createCandidateOrderOffer()
           
 FulfillmentGroupAdjustment createFulfillmentGroupAdjustment()
           
 OfferInfo createOfferInfo()
           
 OrderAdjustment createOrderAdjustment()
           
 OrderItemAdjustment createOrderItemAdjustment()
           
 OrderItemPriceDetailAdjustment createOrderItemPriceDetailAdjustment()
           
 void delete(Offer offer)
           
 void delete(OfferInfo offerInfo)
           
 Long getCurrentDateResolution()
          Returns the number of milliseconds that the current date/time will be cached for queries before refreshing.
 List<Offer> readAllOffers()
           
 Offer readOfferById(Long offerId)
           
 List<Offer> readOffersByAutomaticDeliveryType()
           
 Offer save(Offer offer)
           
 OfferInfo save(OfferInfo offerInfo)
           
 void setCurrentDateResolution(Long currentDateResolution)
          Sets the number of milliseconds that the current date/time will be cached for queries before refreshing.
 

Method Detail

readAllOffers

List<Offer> readAllOffers()

readOfferById

Offer readOfferById(Long offerId)

readOffersByAutomaticDeliveryType

List<Offer> readOffersByAutomaticDeliveryType()

save

Offer save(Offer offer)

delete

void delete(Offer offer)

create

Offer create()

createCandidateOrderOffer

CandidateOrderOffer createCandidateOrderOffer()

createCandidateItemOffer

CandidateItemOffer createCandidateItemOffer()

createCandidateFulfillmentGroupOffer

CandidateFulfillmentGroupOffer createCandidateFulfillmentGroupOffer()

createOrderItemAdjustment

OrderItemAdjustment createOrderItemAdjustment()

createOrderItemPriceDetailAdjustment

OrderItemPriceDetailAdjustment createOrderItemPriceDetailAdjustment()

createOrderAdjustment

OrderAdjustment createOrderAdjustment()

createFulfillmentGroupAdjustment

FulfillmentGroupAdjustment createFulfillmentGroupAdjustment()

createOfferInfo

OfferInfo createOfferInfo()

save

OfferInfo save(OfferInfo offerInfo)

delete

void delete(OfferInfo offerInfo)

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

void setCurrentDateResolution(Long currentDateResolution)
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


Copyright © 2013. All Rights Reserved.