fr.paris.lutece.plugins.stock.modules.tickets.business
Class PurchaseStatisticDAO

java.lang.Object
  extended by fr.paris.lutece.util.jpa.JPAGenericDAO<K,E>
      extended by fr.paris.lutece.portal.service.jpa.JPALuteceDAO<K,E>
          extended by fr.paris.lutece.plugins.stock.commons.dao.AbstractStockDAO<java.lang.Integer,PurchaseStatistic>
              extended by fr.paris.lutece.plugins.stock.modules.tickets.business.PurchaseStatisticDAO
All Implemented Interfaces:
IPurchaseStatisticDAO, fr.paris.lutece.util.jpa.IGenericDAO<java.lang.Integer,PurchaseStatistic>

public final class PurchaseStatisticDAO
extends fr.paris.lutece.plugins.stock.commons.dao.AbstractStockDAO<java.lang.Integer,PurchaseStatistic>
implements IPurchaseStatisticDAO

This class provides Data Access methods for Person objects


Constructor Summary
PurchaseStatisticDAO()
           
 
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
 java.lang.String getPluginName()
          
 
Methods inherited from class fr.paris.lutece.plugins.stock.commons.dao.AbstractStockDAO
addRestriction, createPagedQuery, findAll
 
Methods inherited from class fr.paris.lutece.portal.service.jpa.JPALuteceDAO
createNativeQuery, getEntityManagerFactory
 
Methods inherited from class fr.paris.lutece.util.jpa.JPAGenericDAO
create, detach, findAll, findById, flush, getEM, getEntityClass, getEntityClassName, remove, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.paris.lutece.util.jpa.IGenericDAO
create, detach, findAll, findById, flush, remove, update
 

Constructor Detail

PurchaseStatisticDAO

public PurchaseStatisticDAO()
Method Detail

getPluginName

public java.lang.String getPluginName()

Specified by:
getPluginName in class fr.paris.lutece.portal.service.jpa.JPALuteceDAO<java.lang.Integer,PurchaseStatistic>

getAllByIdPurchase

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

Specified by:
getAllByIdPurchase in interface IPurchaseStatisticDAO
Parameters:
idPurchase - the identifier of purchase
Returns:
a list of PurchaseStatistic instance

getAllResultStatisticByParameters

public 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

Specified by:
getAllResultStatisticByParameters in interface IPurchaseStatisticDAO
Parameters:
strTimesUnit - the times unit
strDateDebut - the begin date
strDateFin - the end date
Returns:
a list of ResultStatistic

getCountPurchasesByDates

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

Specified by:
getCountPurchasesByDates in interface IPurchaseStatisticDAO
Parameters:
strDateDebut - the date begin
strDateFin - the date end
Returns:
the purchase count


Copyright © 2012 Mairie de Paris. All Rights Reserved.