fr.paris.lutece.plugins.stock.modules.tickets.business
Interface IPurchaseStatisticDAO

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

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

IPersonDAO Interface


Method Summary
 java.util.List<PurchaseStatistic> getAllByIdPurchase(java.lang.Integer idPurchase)
          get all PurchaseStatistic by the purchase identifier
 java.util.List<ResultStatistic> getAllResultStatisticByParameters(java.lang.String strTimesUnit, java.lang.String strDateDebut, java.lang.String strDateFin)
          get all association of date and purchases count by parameters
 java.lang.Integer getCountPurchasesByDates(java.lang.String strDateDebut, java.lang.String strDateFin)
          get the purchase count by dates parameters
 
Methods inherited from interface fr.paris.lutece.util.jpa.IGenericDAO
create, detach, findAll, findById, flush, remove, update
 

Method Detail

getAllByIdPurchase

java.util.List<PurchaseStatistic> getAllByIdPurchase(java.lang.Integer idPurchase)
get all PurchaseStatistic by the purchase identifier

Parameters:
idPurchase - the identifier of purchase
Returns:
a list of PurchaseStatistic instance

getAllResultStatisticByParameters

java.util.List<ResultStatistic> getAllResultStatisticByParameters(java.lang.String strTimesUnit,
                                                                  java.lang.String strDateDebut,
                                                                  java.lang.String strDateFin)
get all association of date and purchases count by parameters

Parameters:
strTimesUnit - the times unit
strDateDebut - the begin date
strDateFin - the end date
Returns:
a list of ResultStatistic

getCountPurchasesByDates

java.lang.Integer getCountPurchasesByDates(java.lang.String strDateDebut,
                                           java.lang.String strDateFin)
get the purchase count by dates parameters

Parameters:
strDateDebut - the date begin
strDateFin - the date end
Returns:
the purchase count


Copyright © 2012 Mairie de Paris. All Rights Reserved.