public interface IPurchaseDAO extends fr.paris.lutece.util.jpa.IGenericDAO<Integer,Purchase>
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 by filter with paginator.
|
Integer |
getCountPurchaseByBeginDateAndLastDate(String strDateDebut,
String strDateFin)
Return the number of purchase for the current month
|
Integer |
getQuantityPurchasedByIdProductAndUserName(Integer id,
Integer idOfferGenre,
String userName)
Return the number of reservation for an offer and an agent.
|
fr.paris.lutece.plugins.stock.commons.ResultList<Purchase> findByFilter(PurchaseFilter filter, fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginationProperties)
filter
- the filterpaginationProperties
- the pagination propertiesInteger getQuantityPurchasedByIdProductAndUserName(Integer id, Integer idOfferGenre, String userName)
id
- offer ididOfferGenre
- the id offer genreuserName
- agent userNameInteger getCountPurchaseByBeginDateAndLastDate(String strDateDebut, String strDateFin)
strDateDebut
- the first date of the monthstrDateFin
- the last date of the monthCopyright © 2020 City of Paris. All rights reserved.