fr.paris.lutece.plugins.stock.business.purchase
Interface IPurchaseDAO

All Superinterfaces:
fr.paris.lutece.util.jpa.IGenericDAO<java.lang.Integer,Purchase>
All Known Implementing Classes:
PurchaseDAO

public interface IPurchaseDAO
extends fr.paris.lutece.util.jpa.IGenericDAO<java.lang.Integer,Purchase>

IPurchaseDAO Interface


Method Summary
 fr.paris.lutece.plugins.stock.commons.ResultList<Purchase> findByFilter(PurchaseFilter filter, fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginationProperties)
          Find by filter.
 java.lang.Integer getCountPurchaseByBeginDateAndLastDate(java.lang.String strDateDebut, java.lang.String strDateFin)
          Return the number of purchase for the current month
 java.lang.Integer getQuantityPurchasedByIdProductAndUserName(java.lang.Integer id, java.lang.Integer idOfferGenre, java.lang.String userName)
          Return the number of reservation for an offer and an agent.
 
Methods inherited from interface fr.paris.lutece.util.jpa.IGenericDAO
create, detach, findAll, findById, flush, remove, update
 

Method Detail

findByFilter

fr.paris.lutece.plugins.stock.commons.ResultList<Purchase> findByFilter(PurchaseFilter filter,
                                                                        fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginationProperties)
Find by filter.

Parameters:
filter - the filter
paginationProperties - the pagination properties
Returns:
the purchase list filtered

getQuantityPurchasedByIdProductAndUserName

java.lang.Integer getQuantityPurchasedByIdProductAndUserName(java.lang.Integer id,
                                                             java.lang.Integer idOfferGenre,
                                                             java.lang.String userName)
Return the number of reservation for an offer and an agent.

Parameters:
id - offer id
idOfferGenre - the id offer genre
userName - agent userName
Returns:
number of reservation

getCountPurchaseByBeginDateAndLastDate

java.lang.Integer getCountPurchaseByBeginDateAndLastDate(java.lang.String strDateDebut,
                                                         java.lang.String strDateFin)
Return the number of purchase for the current month

Parameters:
strDateDebut - the first date of the month
strDateFin - the last date of the month
Returns:
number of purchase


Copyright © 2012 Mairie de Paris. All Rights Reserved.