@Repository(value="blOfferAuditDao") public class OfferAuditDaoImpl extends Object implements OfferAuditDao
Modifier and Type | Field and Description |
---|---|
protected javax.persistence.EntityManager |
em |
protected EntityConfiguration |
entityConfiguration |
protected static org.apache.commons.logging.Log |
LOG |
Constructor and Description |
---|
OfferAuditDaoImpl() |
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 static final org.apache.commons.logging.Log LOG
protected javax.persistence.EntityManager em
protected EntityConfiguration entityConfiguration
public OfferAudit create()
OfferAuditDao
create
in interface OfferAuditDao
public void delete(OfferAudit offerAudit)
delete
in interface OfferAuditDao
public OfferAudit save(OfferAudit offerAudit)
OfferAuditDao
save
in interface OfferAuditDao
public OfferAudit readAuditById(Long offerAuditId)
readAuditById
in interface OfferAuditDao
public Long countUsesByCustomer(Long customerId, Long offerId)
OfferAuditDao
countUsesByCustomer
in interface OfferAuditDao
public Long countOfferCodeUses(Long offerCodeId)
OfferAuditDao
countOfferCodeUses
in interface OfferAuditDao
Copyright © 2017. All rights reserved.