Interface AdvOfferCodeDao

All Known Implementing Classes:
AdvOfferCodeDaoImpl

public interface AdvOfferCodeDao
  • Method Details

    • saveAllNonDuplicates

      void saveAllNonDuplicates(OfferCodeGenerationInfo info, List<org.broadleafcommerce.core.offer.domain.OfferCode> offerCodeList)
      Saves the list of offer codes and makes them active. If any of the offer codes are already active in the system, they will be deleted.

      Duplicates will be removed from the passed in list.

      Parameters:
      offerCodeList -
    • updateInfo

      Updates the passed in info
      Parameters:
      info -
    • findOfferCodeGenerationById

      OfferCodeGenerationInfo findOfferCodeGenerationById(Long ocgiId)
      Returns the OfferCodeGenerationInfo by id.
      Parameters:
      ocgiId -
      Returns:
    • createInfo

    • readBatchOfferCodeByCodeGenerationId

      List<org.broadleafcommerce.core.offer.domain.OfferCode> readBatchOfferCodeByCodeGenerationId(Long firstId, int count, Long ocgiId)
    • clear

      void clear()
    • readBatchOfferCodeByCodeGenerationId

      List<org.broadleafcommerce.core.offer.domain.OfferCode> readBatchOfferCodeByCodeGenerationId(int firstRecord, int count, Long ocgiId)
    • readNumberOfOfferCodesForCodeGroup

      Long readNumberOfOfferCodesForCodeGroup(Long codeGroupId)