public final class PurchaseStatisticDAO extends fr.paris.lutece.plugins.stock.commons.dao.AbstractStockDAO<Integer,PurchaseStatistic> implements IPurchaseStatisticDAO
Constructor and Description |
---|
PurchaseStatisticDAO() |
Modifier and Type | Method and Description |
---|---|
List<PurchaseStatistic> |
getAllByIdPurchase(Integer idPurchase)
get all PurchaseStatistic by the purchase identifier
|
List<ResultStatistic> |
getAllResultStatisticByParameters(String strTimesUnit,
String strDateDebut,
String strDateFin)
get all association of date and purchases count by parameters
|
Integer |
getCountPurchasesByDates(String strDateDebut,
String strDateFin)
get the purchase count by dates parameters
|
String |
getPluginName() |
addRestriction, createPagedQuery, findAll
createNativeQuery, getEntityManagerFactory
create, detach, findAll, findById, flush, getEM, getEntityClass, getEntityClassName, remove, update
public String getPluginName()
getPluginName
in class fr.paris.lutece.portal.service.jpa.JPALuteceDAO<Integer,PurchaseStatistic>
public List<PurchaseStatistic> getAllByIdPurchase(Integer idPurchase)
getAllByIdPurchase
in interface IPurchaseStatisticDAO
idPurchase
- the identifier of purchasepublic List<ResultStatistic> getAllResultStatisticByParameters(String strTimesUnit, String strDateDebut, String strDateFin)
getAllResultStatisticByParameters
in interface IPurchaseStatisticDAO
strTimesUnit
- the times unitstrDateDebut
- the begin datestrDateFin
- the end datepublic Integer getCountPurchasesByDates(String strDateDebut, String strDateFin)
getCountPurchasesByDates
in interface IPurchaseStatisticDAO
strDateDebut
- the date beginstrDateFin
- the date endCopyright © 2020 City of Paris. All rights reserved.