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(java.lang.Integer nIdProduct)
          remove all product statistic associated to the product identifier
 void doRemovePurchaseStatisticByIdPurchase(java.lang.Integer nIdPurchase)
          remove all purchase statistic associated to the purchase identifier
 java.lang.Integer getCountProductALAffiche()
          get the product showing count
 java.lang.Integer getCountProductAVenir()
          get the product forthcoming count
 java.lang.Integer getCountProductsByDates(java.lang.String strDateDebut, java.lang.String strDateFin)
          get the products count by dates parameters
 java.lang.Integer getCountPurchaseOfDay()
          get the purchase day count
 java.lang.Integer getCountPurchaseOfMonth()
          get the purchase month count
 java.lang.Integer getCountPurchasesByDates(java.lang.String strDateDebut, java.lang.String strDateFin)
          get the purchase count by dates parameters.
 java.util.List<ResultStatistic> getProductStatistic(java.lang.String strTimesUnit, java.lang.String strDateDebut, java.lang.String strDateFin)
          get a list of ResultStatistic containing all associations of date and number of product by parameters
 java.util.List<ResultStatistic> getPurchaseStatistic(java.lang.String strTimesUnit, java.lang.String strDateDebut, java.lang.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

java.util.List<ResultStatistic> getProductStatistic(java.lang.String strTimesUnit,
                                                    java.lang.String strDateDebut,
                                                    java.lang.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

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

java.util.List<ResultStatistic> getPurchaseStatistic(java.lang.String strTimesUnit,
                                                     java.lang.String strDateDebut,
                                                     java.lang.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

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 count purchases by dates

getCountProductALAffiche

java.lang.Integer getCountProductALAffiche()
get the product showing count

Returns:
the product count

getCountProductAVenir

java.lang.Integer getCountProductAVenir()
get the product forthcoming count

Returns:
the product count

getCountPurchaseOfDay

java.lang.Integer getCountPurchaseOfDay()
get the purchase day count

Returns:
the purchase count

getCountPurchaseOfMonth

java.lang.Integer getCountPurchaseOfMonth()
get the purchase month count

Returns:
the purchase count

doRemoveProductStatisticByIdProduct

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

Parameters:
nIdProduct - the identifier of the product

doRemovePurchaseStatisticByIdPurchase

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

Parameters:
nIdPurchase - the identifier of the product


Copyright © 2012 Mairie de Paris. All Rights Reserved.