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, 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,ProductStatistic>
public List<ProductStatistic> getAllByIdProduct(Integer idProduct)
getAllByIdProduct
in interface IProductStatisticDAO
idProduct
- the identifier of productpublic List<ResultStatistic> getAllResultStatisticByParameters(String strTimesUnit, String strDateDebut, String strDateFin)
getAllResultStatisticByParameters
in interface IProductStatisticDAO
strTimesUnit
- the times unitstrDateDebut
- the begin datestrDateFin
- the end datepublic Integer getCountProductsByDates(String strDateDebut, String strDateFin)
getCountProductsByDates
in interface IProductStatisticDAO
strDateDebut
- the date beginstrDateFin
- the date endCopyright © 2020 City of Paris. All rights reserved.