public class ShowDAO extends fr.paris.lutece.plugins.stock.business.product.ProductDAO<Integer,fr.paris.lutece.plugins.stock.business.product.Product> implements IShowDAO
Constructor and Description |
---|
ShowDAO() |
Modifier and Type | Method and Description |
---|---|
protected void |
buildCriteriaQuery(fr.paris.lutece.plugins.stock.business.product.ProductFilter filter,
javax.persistence.criteria.Root<fr.paris.lutece.plugins.stock.business.product.Product> root,
javax.persistence.criteria.CriteriaQuery<fr.paris.lutece.plugins.stock.business.product.Product> query,
javax.persistence.criteria.CriteriaBuilder builder)
Build the criteria query from the filter
|
protected void |
buildSortQuery(fr.paris.lutece.plugins.stock.business.product.ProductFilter filter,
javax.persistence.criteria.Root<fr.paris.lutece.plugins.stock.business.product.Product> root,
javax.persistence.criteria.CriteriaQuery<fr.paris.lutece.plugins.stock.business.product.Product> query,
javax.persistence.criteria.CriteriaBuilder builder)
Build the sort query.
|
List<fr.paris.lutece.plugins.stock.business.product.Product> |
getComeProduct(List<String> orderList,
fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginator)
Gets the come product.
|
List<fr.paris.lutece.plugins.stock.business.product.Product> |
getCurrentAndComeProduct(List<String> orderList)
Return a list of product with date_end after the current date.
|
List<fr.paris.lutece.plugins.stock.business.product.Product> |
getCurrentProduct(List<String> orderList,
fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginator) |
buildPredicates, findByFilter, findByFilter, getAllByName, getCountProductALAfficheByDate, getCountProductAVenirByDate, getPluginName, isFull, isType, isTypeOffer
addRestriction, createPagedQuery, findAll
createNativeQuery, getEntityManagerFactory
create, detach, findAll, findById, flush, getEM, getEntityClass, getEntityClassName, remove, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected void buildCriteriaQuery(fr.paris.lutece.plugins.stock.business.product.ProductFilter filter, javax.persistence.criteria.Root<fr.paris.lutece.plugins.stock.business.product.Product> root, javax.persistence.criteria.CriteriaQuery<fr.paris.lutece.plugins.stock.business.product.Product> query, javax.persistence.criteria.CriteriaBuilder builder)
buildCriteriaQuery
in class fr.paris.lutece.plugins.stock.business.product.ProductDAO<Integer,fr.paris.lutece.plugins.stock.business.product.Product>
filter
- the filterroot
- the category rootquery
- the criteria querybuilder
- the criteria builderpublic List<fr.paris.lutece.plugins.stock.business.product.Product> getCurrentProduct(List<String> orderList, fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginator)
getCurrentProduct
in interface IShowDAO
public List<fr.paris.lutece.plugins.stock.business.product.Product> getComeProduct(List<String> orderList, fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginator)
getComeProduct
in interface IShowDAO
orderList
- the order listpaginator
- the paginatorpublic List<fr.paris.lutece.plugins.stock.business.product.Product> getCurrentAndComeProduct(List<String> orderList)
getCurrentAndComeProduct
in interface IShowDAO
orderList
- the order listprotected void buildSortQuery(fr.paris.lutece.plugins.stock.business.product.ProductFilter filter, javax.persistence.criteria.Root<fr.paris.lutece.plugins.stock.business.product.Product> root, javax.persistence.criteria.CriteriaQuery<fr.paris.lutece.plugins.stock.business.product.Product> query, javax.persistence.criteria.CriteriaBuilder builder)
buildSortQuery
in class fr.paris.lutece.plugins.stock.business.product.ProductDAO<Integer,fr.paris.lutece.plugins.stock.business.product.Product>
filter
- the filterroot
- the product rootquery
- the criteria querybuilder
- the criteria builderCopyright © 2020 City of Paris. All rights reserved.