fr.paris.lutece.plugins.stock.modules.tickets.service
Interface IStatisticService

All Known Implementing Classes:
StatisticService

@Transactional
public interface IStatisticService

The Interface IStatisticService.


Method Summary
 void doManageProductSaving(ShowDTO product)
          Modifies a productStatistic
 void doManagePurchaseSaving(ReservationDTO purchaseDTO)
          Modifies a purchaseStatistic
 void doRemoveProductStatisticByIdProduct(Integer nIdProduct)
          remove all product statistic associated to the product identifier
 void doRemovePurchaseStatisticByIdPurchase(Integer nIdPurchase)
          remove all purchase statistic associated to the purchase identifier
 Integer getCountProductALAffiche()
          get the product showing count
 Integer getCountProductAVenir()
          get the product forthcoming count
 Integer getCountProductsByDates(String strDateDebut, String strDateFin)
          get the products count by dates parameters
 Integer getCountPurchaseOfDay()
          get the purchase day count
 Integer getCountPurchaseOfMonth()
          get the purchase month count
 Integer getCountPurchasesByDates(String strDateDebut, String strDateFin)
          get the purchase count by dates parameters.
 List<ResultStatistic> getProductStatistic(String strTimesUnit, String strDateDebut, String strDateFin)
          get a list of ResultStatistic containing all associations of date and number of product by parameters
 List<ResultStatistic> getPurchaseStatistic(String strTimesUnit, String strDateDebut, String strDateFin)
          get a list of ResultStatistic containing all associations of date and number of purchase by parameters
 

Method Detail

doManageProductSaving

void doManageProductSaving(ShowDTO product)
Modifies a productStatistic

Parameters:
product - The product of the productStatistic to modify in database

getProductStatistic

List<ResultStatistic> getProductStatistic(String strTimesUnit,
                                          String strDateDebut,
                                          String strDateFin)
get a list of ResultStatistic containing all associations of date and number of product by parameters

Parameters:
strTimesUnit - the time unit
strDateDebut - the date begin
strDateFin - teh date end
Returns:
the list of ResultStatistic

getCountProductsByDates

Integer getCountProductsByDates(String strDateDebut,
                                String strDateFin)
get the products count by dates parameters

Parameters:
strDateDebut - the date begin
strDateFin - teh date end
Returns:
the product count

doManagePurchaseSaving

void doManagePurchaseSaving(ReservationDTO purchaseDTO)
Modifies a purchaseStatistic

Parameters:
purchaseDTO - The purchase of the purchaseStatistic to modify in database

getPurchaseStatistic

List<ResultStatistic> getPurchaseStatistic(String strTimesUnit,
                                           String strDateDebut,
                                           String strDateFin)
get a list of ResultStatistic containing all associations of date and number of purchase by parameters

Parameters:
strTimesUnit - the time unit
strDateDebut - the date begin
strDateFin - teh date end
Returns:
the list of ResultStatistic

getCountPurchasesByDates

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

Parameters:
strDateDebut - the date begin
strDateFin - the date end
Returns:
the count purchases by dates

getCountProductALAffiche

Integer getCountProductALAffiche()
get the product showing count

Returns:
the product count

getCountProductAVenir

Integer getCountProductAVenir()
get the product forthcoming count

Returns:
the product count

getCountPurchaseOfDay

Integer getCountPurchaseOfDay()
get the purchase day count

Returns:
the purchase count

getCountPurchaseOfMonth

Integer getCountPurchaseOfMonth()
get the purchase month count

Returns:
the purchase count

doRemoveProductStatisticByIdProduct

void doRemoveProductStatisticByIdProduct(Integer nIdProduct)
remove all product statistic associated to the product identifier

Parameters:
nIdProduct - the identifier of the product

doRemovePurchaseStatisticByIdPurchase

void doRemovePurchaseStatisticByIdPurchase(Integer nIdPurchase)
remove all purchase statistic associated to the purchase identifier

Parameters:
nIdPurchase - the identifier of the product


Copyright © 2014 Mairie de Paris. All Rights Reserved.