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

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

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

IPersonDAO Interface


Method Summary
 java.util.List<ProductStatistic> getAllByIdProduct(java.lang.Integer idProduct)
          get all ProductStatistic by the product identifier
 java.util.List<ResultStatistic> getAllResultStatisticByParameters(java.lang.String strTimesUnit, java.lang.String strDateDebut, java.lang.String strDateFin)
          get all association of date and products count by parameters
 java.lang.Integer getCountProductsByDates(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

getAllByIdProduct

java.util.List<ProductStatistic> getAllByIdProduct(java.lang.Integer idProduct)
get all ProductStatistic by the product identifier

Parameters:
idProduct - the identifier of product
Returns:
a list of ProductStatistic 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 products count by parameters

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

getCountProductsByDates

java.lang.Integer getCountProductsByDates(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.