@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()
OfferAuditDaocreate in interface OfferAuditDaopublic void delete(OfferAudit offerAudit)
delete in interface OfferAuditDaopublic OfferAudit save(OfferAudit offerAudit)
OfferAuditDaosave in interface OfferAuditDaopublic OfferAudit readAuditById(Long offerAuditId)
readAuditById in interface OfferAuditDaopublic Long countUsesByCustomer(Long customerId, Long offerId)
OfferAuditDaocountUsesByCustomer in interface OfferAuditDaopublic Long countOfferCodeUses(Long offerCodeId)
OfferAuditDaocountOfferCodeUses in interface OfferAuditDaoCopyright © 2014. All rights reserved.