Interface AdvOfferCodeDao
- All Known Implementing Classes:
AdvOfferCodeDaoImpl
public interface AdvOfferCodeDao
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()findOfferCodeGenerationById(Long ocgiId) Returns theOfferCodeGenerationInfoby id.List<org.broadleafcommerce.core.offer.domain.OfferCode>readBatchOfferCodeByCodeGenerationId(int firstRecord, int count, Long ocgiId) List<org.broadleafcommerce.core.offer.domain.OfferCode>readBatchOfferCodeByCodeGenerationId(Long firstId, int count, Long ocgiId) readNumberOfOfferCodesForCodeGroup(Long codeGroupId) voidsaveAllNonDuplicates(OfferCodeGenerationInfo info, List<org.broadleafcommerce.core.offer.domain.OfferCode> offerCodeList) Saves the list of offer codes and makes them active.Updates the passed in info
-
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
Returns theOfferCodeGenerationInfoby id.- Parameters:
ocgiId-- Returns:
-
createInfo
OfferCodeGenerationInfo createInfo() -
readBatchOfferCodeByCodeGenerationId
-
clear
void clear() -
readBatchOfferCodeByCodeGenerationId
-
readNumberOfOfferCodesForCodeGroup
-