org.broadleafcommerce.core.rating.dao
Class RatingSummaryDaoImpl

java.lang.Object
  extended by org.broadleafcommerce.common.util.dao.BatchRetrieveDao
      extended by org.broadleafcommerce.core.rating.dao.RatingSummaryDaoImpl
All Implemented Interfaces:
RatingSummaryDao

@Repository(value="blRatingSummaryDao")
public class RatingSummaryDaoImpl
extends BatchRetrieveDao
implements RatingSummaryDao


Field Summary
protected  javax.persistence.EntityManager em
           
protected  EntityConfiguration entityConfiguration
           
 
Constructor Summary
RatingSummaryDaoImpl()
           
 
Method Summary
 void deleteRatingSummary(RatingSummary summary)
           
 RatingDetail readRating(Long customerId, Long ratingSummaryId)
           
 List<RatingSummary> readRatingSummaries(List<String> itemIds, RatingType type)
           
 RatingSummary readRatingSummary(String itemId, RatingType type)
           
 ReviewDetail readReview(Long customerId, Long ratingSummaryId)
           
 RatingSummary saveRatingSummary(RatingSummary summary)
           
 
Methods inherited from class org.broadleafcommerce.common.util.dao.BatchRetrieveDao
batchExecuteReadQuery, getInClauseBatchSize, setInClauseBatchSize
 
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

RatingSummaryDaoImpl

public RatingSummaryDaoImpl()
Method Detail

deleteRatingSummary

public void deleteRatingSummary(RatingSummary summary)
Specified by:
deleteRatingSummary in interface RatingSummaryDao

saveRatingSummary

public RatingSummary saveRatingSummary(RatingSummary summary)
Specified by:
saveRatingSummary in interface RatingSummaryDao

readRatingSummaries

public List<RatingSummary> readRatingSummaries(List<String> itemIds,
                                               RatingType type)
Specified by:
readRatingSummaries in interface RatingSummaryDao

readRatingSummary

public RatingSummary readRatingSummary(String itemId,
                                       RatingType type)
Specified by:
readRatingSummary in interface RatingSummaryDao

readRating

public RatingDetail readRating(Long customerId,
                               Long ratingSummaryId)
Specified by:
readRating in interface RatingSummaryDao

readReview

public ReviewDetail readReview(Long customerId,
                               Long ratingSummaryId)
Specified by:
readReview in interface RatingSummaryDao


Copyright © 2012. All Rights Reserved.