org.broadleafcommerce.core.offer.dao
Class OfferAuditDaoImpl

java.lang.Object
  extended by org.broadleafcommerce.core.offer.dao.OfferAuditDaoImpl
All Implemented Interfaces:
OfferAuditDao

@Repository(value="blOfferAuditDao")
public class OfferAuditDaoImpl
extends Object
implements OfferAuditDao


Field Summary
protected  javax.persistence.EntityManager em
           
protected  EntityConfiguration entityConfiguration
           
 
Constructor Summary
OfferAuditDaoImpl()
           
 
Method Summary
 Long countUsesByCustomer(Long customerId, Long offerId)
           
 OfferAudit create()
           
 void delete(OfferAudit offerAudit)
           
 OfferAudit readAuditById(Long offerAuditId)
           
 OfferAudit save(OfferAudit offerAudit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

em

protected javax.persistence.EntityManager em

entityConfiguration

protected EntityConfiguration entityConfiguration
Constructor Detail

OfferAuditDaoImpl

public OfferAuditDaoImpl()
Method Detail

create

public OfferAudit create()
Specified by:
create in interface OfferAuditDao

delete

public void delete(OfferAudit offerAudit)
Specified by:
delete in interface OfferAuditDao

save

public OfferAudit save(OfferAudit offerAudit)
Specified by:
save in interface OfferAuditDao

readAuditById

public OfferAudit readAuditById(Long offerAuditId)
Specified by:
readAuditById in interface OfferAuditDao

countUsesByCustomer

public Long countUsesByCustomer(Long customerId,
                                Long offerId)
Specified by:
countUsesByCustomer in interface OfferAuditDao


Copyright © 2013. All Rights Reserved.