public class PurchaseDAO extends fr.paris.lutece.plugins.stock.commons.dao.AbstractStockDAO<Integer,Purchase> implements IPurchaseDAO
Purchase
objects.Constructor and Description |
---|
PurchaseDAO() |
Modifier and Type | Method and Description |
---|---|
fr.paris.lutece.plugins.stock.commons.ResultList<Purchase> |
findByFilter(PurchaseFilter filter,
fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginationProperties)
Find purchases by filter.
|
Integer |
getCountPurchaseByBeginDateAndLastDate(String strDateDebut,
String strDateFin)
Return the number of purchase for the current month
|
String |
getPluginName() |
Integer |
getQuantityPurchasedByIdProductAndUserName(Integer idProduct,
Integer idOfferGenre,
String userName)
Return the number of reservation for an offer and an agent.
|
getEntityManagerFactory
create, detach, findAll, findById, flush, getEM, getEntityClass, getEntityClassName, remove, update
public String getPluginName()
public fr.paris.lutece.plugins.stock.commons.ResultList<Purchase> findByFilter(PurchaseFilter filter, fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginationProperties)
findByFilter
in interface IPurchaseDAO
filter
- the filterpaginationProperties
- the pagination propertiespublic Integer getQuantityPurchasedByIdProductAndUserName(Integer idProduct, Integer idOfferGenre, String userName)
getQuantityPurchasedByIdProductAndUserName
in interface IPurchaseDAO
idProduct
- offer ididOfferGenre
- the id offer genreuserName
- agent userNamepublic Integer getCountPurchaseByBeginDateAndLastDate(String strDateDebut, String strDateFin)
getCountPurchaseByBeginDateAndLastDate
in interface IPurchaseDAO
strDateDebut
- the first date of the monthstrDateFin
- the last date of the monthCopyright © 2021 City of Paris. All rights reserved.