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, findAllcreateNativeQuery, getEntityManagerFactorycreate, detach, findAll, findById, flush, getEM, getEntityClass, getEntityClassName, remove, updatepublic String getPluginName()
getPluginName in class fr.paris.lutece.portal.service.jpa.JPALuteceDAO<Integer,PurchaseStatistic>public List<PurchaseStatistic> getAllByIdPurchase(Integer idPurchase)
getAllByIdPurchase in interface IPurchaseStatisticDAOidPurchase - the identifier of purchasepublic List<ResultStatistic> getAllResultStatisticByParameters(String strTimesUnit, String strDateDebut, String strDateFin)
getAllResultStatisticByParameters in interface IPurchaseStatisticDAOstrTimesUnit - the times unitstrDateDebut - the begin datestrDateFin - the end datepublic Integer getCountPurchasesByDates(String strDateDebut, String strDateFin)
getCountPurchasesByDates in interface IPurchaseStatisticDAOstrDateDebut - the date beginstrDateFin - the date endCopyright © 2020 City of Paris. All rights reserved.