@Service(value="blOfferAuditService") public class OfferAuditServiceImpl extends Object implements OfferAuditService
| Modifier and Type | Field and Description |
|---|---|
protected OfferAuditDao |
offerAuditDao |
| Constructor and Description |
|---|
OfferAuditServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Long |
countOfferCodeUses(Long offerCodeId)
Counts how many times the given offer code has been used in the system
|
Long |
countUsesByCustomer(Long customerId,
Long offerId)
Counts how many times the an offer has been used by a customer
|
OfferAudit |
create()
Creates a new offer audit
|
void |
delete(OfferAudit offerAudit) |
OfferAudit |
readAuditById(Long offerAuditId) |
OfferAudit |
save(OfferAudit offerAudit)
Persists an audit record to the database
|
protected OfferAuditDao offerAuditDao
public OfferAudit readAuditById(Long offerAuditId)
readAuditById in interface OfferAuditService@Transactional(value="blTransactionManager") public OfferAudit save(OfferAudit offerAudit)
OfferAuditServicesave in interface OfferAuditService@Transactional(value="blTransactionManager") public void delete(OfferAudit offerAudit)
delete in interface OfferAuditServicepublic OfferAudit create()
OfferAuditServicecreate in interface OfferAuditServicepublic Long countUsesByCustomer(Long customerId, Long offerId)
OfferAuditServicecountUsesByCustomer in interface OfferAuditServicepublic Long countOfferCodeUses(Long offerCodeId)
OfferAuditServicecountOfferCodeUses in interface OfferAuditServiceCopyright © 2014. All Rights Reserved.