org.zeroexchange.dao.resource
Class SupplyDAOImpl

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.resource.ResourceTenderDAOImpl<Supply>
                  extended by org.zeroexchange.dao.resource.SupplyDAOImpl
All Implemented Interfaces:
DAO<Integer,Supply>, IntegerPKDAO<Supply>, ResourceTenderDAO<Supply>, SupplyDAO

public class SupplyDAOImpl
extends ResourceTenderDAOImpl<Supply>
implements SupplyDAO

Author:
black

Nested Class Summary
 
Nested classes/interfaces inherited from class org.zeroexchange.dao.resource.ResourceTenderDAOImpl
ResourceTenderDAOImpl.TendersDataSet
 
Constructor Summary
SupplyDAOImpl()
           
 
Method Summary
 BigDecimal getAverageSoldPrice()
          Returns average price of sold products.
 Class<Supply> getEntityClass()
          
 SlicingDataSet<Supply> getSupplies(Resource resource, Integer excludedUserId)
          Returns set of the resource tenders.
 
Methods inherited from class org.zeroexchange.dao.resource.ResourceTenderDAOImpl
getFirstAcceptedTender, getFirstAcceptedTender, getTotalTenders, getUserTender, getVisitedTendersCount, isUserHasTender, remove
 
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.resource.ResourceTenderDAO
getFirstAcceptedTender, getFirstAcceptedTender, getTotalTenders, getUserTender, getVisitedTendersCount, isUserHasTender, remove
 
Methods inherited from interface org.zeroexchange.dao.DAO
getById, removeById, save
 

Constructor Detail

SupplyDAOImpl

public SupplyDAOImpl()
Method Detail

getEntityClass

public Class<Supply> getEntityClass()

Specified by:
getEntityClass in class BaseHibernateDAO<Integer,Supply>

getAverageSoldPrice

public BigDecimal getAverageSoldPrice()
Returns average price of sold products.

Specified by:
getAverageSoldPrice in interface SupplyDAO

getSupplies

public SlicingDataSet<Supply> getSupplies(Resource resource,
                                          Integer excludedUserId)
Returns set of the resource tenders.

Specified by:
getSupplies in interface SupplyDAO


Copyright © 2013. All Rights Reserved.