Interface OfferCodePersister

All Known Implementing Classes:
OfferCodePersisterImpl

public interface OfferCodePersister
Handles transactional persistence and error handling for batches of offer codes.
Author:
bpolster
  • Method Details

    • persistOfferCodeBatch

      int persistOfferCodeBatch(OfferCodeGenerationInfo info, Set<String> currentCodeSet)
      Persists a batch of offers in a transaction. By design, a caller should not be in a transaction allowing for partial completion of offer code generation.
      Parameters:
      info -
      currentCodeSet -
      Returns:
      the number of codes persisted
    • persistOfferCodes

      List<org.broadleafcommerce.core.offer.domain.OfferCode> persistOfferCodes(OfferCodeGenerationInfo info, Set<String> currentCodeSet)