fr.paris.lutece.plugins.stock.modules.tickets.business
Class PurchaseStatisticDAO
java.lang.Object
fr.paris.lutece.util.jpa.JPAGenericDAO<K,E>
fr.paris.lutece.portal.service.jpa.JPALuteceDAO<K,E>
fr.paris.lutece.plugins.stock.commons.dao.AbstractStockDAO<Integer,PurchaseStatistic>
fr.paris.lutece.plugins.stock.modules.tickets.business.PurchaseStatisticDAO
- All Implemented Interfaces:
- IPurchaseStatisticDAO, fr.paris.lutece.util.jpa.IGenericDAO<Integer,PurchaseStatistic>
public final class PurchaseStatisticDAO
- extends fr.paris.lutece.plugins.stock.commons.dao.AbstractStockDAO<Integer,PurchaseStatistic>
- implements IPurchaseStatisticDAO
This class provides Data Access methods for Person objects
| 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 |
PurchaseStatisticDAO
public PurchaseStatisticDAO()
getPluginName
public String getPluginName()
-
- Specified by:
getPluginName in class fr.paris.lutece.portal.service.jpa.JPALuteceDAO<Integer,PurchaseStatistic>
getAllByIdPurchase
public List<PurchaseStatistic> getAllByIdPurchase(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 List<ResultStatistic> getAllResultStatisticByParameters(String strTimesUnit,
String strDateDebut,
String strDateFin)
- get all association of date and purchases count by parameters
- Specified by:
getAllResultStatisticByParameters in interface IPurchaseStatisticDAO
- Parameters:
strTimesUnit - the times unitstrDateDebut - the begin datestrDateFin - the end date
- Returns:
- a list of ResultStatistic
getCountPurchasesByDates
public Integer getCountPurchasesByDates(String strDateDebut,
String strDateFin)
- get the purchase count by dates parameters
- Specified by:
getCountPurchasesByDates in interface IPurchaseStatisticDAO
- Parameters:
strDateDebut - the date beginstrDateFin - the date end
- Returns:
- the purchase count
Copyright © 2014 Mairie de Paris. All Rights Reserved.