public final class ProductStatisticDAO extends fr.paris.lutece.plugins.stock.commons.dao.AbstractStockDAO<Integer,ProductStatistic> implements IProductStatisticDAO
| Constructor and Description |
|---|
ProductStatisticDAO() |
| Modifier and Type | Method and Description |
|---|---|
List<ProductStatistic> |
getAllByIdProduct(Integer idProduct)
get all ProductStatistic by the product identifier
|
List<ResultStatistic> |
getAllResultStatisticByParameters(String strTimesUnit,
String strDateDebut,
String strDateFin)
get all association of date and products count by parameters
|
Integer |
getCountProductsByDates(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,ProductStatistic>public List<ProductStatistic> getAllByIdProduct(Integer idProduct)
getAllByIdProduct in interface IProductStatisticDAOidProduct - the identifier of productpublic List<ResultStatistic> getAllResultStatisticByParameters(String strTimesUnit, String strDateDebut, String strDateFin)
getAllResultStatisticByParameters in interface IProductStatisticDAOstrTimesUnit - the times unitstrDateDebut - the begin datestrDateFin - the end datepublic Integer getCountProductsByDates(String strDateDebut, String strDateFin)
getCountProductsByDates in interface IProductStatisticDAOstrDateDebut - the date beginstrDateFin - the date endCopyright © 2023 City of Paris. All rights reserved.