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<java.lang.Integer,PurchaseStatistic>
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
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 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 unitstrDateDebut
- the begin datestrDateFin
- 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 beginstrDateFin
- the date end
- Returns:
- the purchase count
Copyright © 2012 Mairie de Paris. All Rights Reserved.