org.zeroexchange.dao.collaboration
Class BusinessQualityDAOImpl

java.lang.Object
  extended by org.zeroexchange.dao.HibernateSessionHolder
      extended by org.zeroexchange.dao.BaseHibernateDAO<Integer,T>
          extended by org.zeroexchange.dao.BaseIntegerPKDAO<T>
              extended by org.zeroexchange.dao.collaboration.AssessmentDAOImpl<BusinessQuality>
                  extended by org.zeroexchange.dao.collaboration.BusinessQualityDAOImpl
All Implemented Interfaces:
AssessmentDAO<BusinessQuality>, BusinessQualityDAO, DAO<Integer,BusinessQuality>, IntegerPKDAO<BusinessQuality>

public class BusinessQualityDAOImpl
extends AssessmentDAOImpl<BusinessQuality>
implements BusinessQualityDAO

Author:
black

Constructor Summary
BusinessQualityDAOImpl()
           
 
Method Summary
 BigDecimal getAvarageAssessment(Integer userId)
          Returns average assessment of the specified user.
protected  Class<BusinessQuality> getEntityClass()
           
 BigDecimal getPartnersCount(Integer userId)
          Returns unique partners count.
 long getPartnersDealsNumber(Integer supplierId, Integer evaluatorId)
          Returns partners deals number.
 BigDecimal getTotalEffectiveSum(Integer userId)
          Returns user's effective qualities sum.
 
Methods inherited from class org.zeroexchange.dao.BaseHibernateDAO
getById, removeById, save
 
Methods inherited from class org.zeroexchange.dao.HibernateSessionHolder
getSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.zeroexchange.dao.DAO
getById, removeById, save
 

Constructor Detail

BusinessQualityDAOImpl

public BusinessQualityDAOImpl()
Method Detail

getEntityClass

protected Class<BusinessQuality> getEntityClass()
Specified by:
getEntityClass in class BaseHibernateDAO<Integer,BusinessQuality>

getAvarageAssessment

public BigDecimal getAvarageAssessment(Integer userId)
Returns average assessment of the specified user.

Specified by:
getAvarageAssessment in interface BusinessQualityDAO

getPartnersDealsNumber

public long getPartnersDealsNumber(Integer supplierId,
                                   Integer evaluatorId)
Returns partners deals number.

Specified by:
getPartnersDealsNumber in interface BusinessQualityDAO

getTotalEffectiveSum

public BigDecimal getTotalEffectiveSum(Integer userId)
Returns user's effective qualities sum.

Specified by:
getTotalEffectiveSum in interface BusinessQualityDAO

getPartnersCount

public BigDecimal getPartnersCount(Integer userId)
Returns unique partners count.

Specified by:
getPartnersCount in interface BusinessQualityDAO


Copyright © 2013. All Rights Reserved.