|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.util.jpa.JPAGenericDAO<K,E>
fr.paris.lutece.portal.service.jpa.JPALuteceDAO<K,E>
fr.paris.lutece.plugins.stock.commons.dao.AbstractStockDAO<java.lang.Integer,Product>
fr.paris.lutece.plugins.stock.business.product.ProductDAO<K,E>
K
- the key typeE
- the element typepublic class ProductDAO<K,E>
This class provides Data Access methods for Product
objects.
Constructor Summary | |
---|---|
ProductDAO()
|
Method Summary | |
---|---|
protected void |
buildCriteriaQuery(ProductFilter filter,
javax.persistence.criteria.Root<Product> root,
javax.persistence.criteria.CriteriaQuery<Product> query,
javax.persistence.criteria.CriteriaBuilder builder)
Build the criteria query from the filter. |
protected java.util.List<javax.persistence.criteria.Predicate> |
buildPredicates(ProductFilter filter,
javax.persistence.criteria.Root<Product> root,
javax.persistence.criteria.CriteriaBuilder builder)
Build the predicate list from filter. |
protected void |
buildSortQuery(ProductFilter filter,
javax.persistence.criteria.Root<Product> root,
javax.persistence.criteria.CriteriaQuery<Product> query,
javax.persistence.criteria.CriteriaBuilder builder)
Build the sort query. |
java.util.List<Product> |
findByFilter(ProductFilter filter)
Find product list by filter. |
fr.paris.lutece.plugins.stock.commons.ResultList<Product> |
findByFilter(ProductFilter filter,
fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginationProperties)
Finds by filter. |
java.util.List<Product> |
getAllByName(java.lang.String name)
Returns products by name |
java.lang.Integer |
getCountProductALAfficheByDate(java.lang.String strDate)
Return the number of current product |
java.lang.Integer |
getCountProductAVenirByDate(java.lang.String strDate)
Return the number of future product |
java.lang.String |
getPluginName()
|
Methods inherited from class fr.paris.lutece.plugins.stock.commons.dao.AbstractStockDAO |
---|
addRestriction, createPagedQuery, findAll |
Methods inherited from class fr.paris.lutece.portal.service.jpa.JPALuteceDAO |
---|
createNativeQuery, getEntityManagerFactory |
Methods inherited from class fr.paris.lutece.util.jpa.JPAGenericDAO |
---|
create, detach, findAll, findById, flush, getEM, getEntityClass, getEntityClassName, remove, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface fr.paris.lutece.plugins.stock.commons.dao.IStockDAO |
---|
findAll |
Methods inherited from interface fr.paris.lutece.util.jpa.IGenericDAO |
---|
create, detach, findAll, findById, flush, remove, update |
Constructor Detail |
---|
public ProductDAO()
Method Detail |
---|
public java.lang.String getPluginName()
getPluginName
in class fr.paris.lutece.portal.service.jpa.JPALuteceDAO<java.lang.Integer,Product>
public java.util.List<Product> findByFilter(ProductFilter filter)
findByFilter
in interface IProductDAO
filter
- the filter
public fr.paris.lutece.plugins.stock.commons.ResultList<Product> findByFilter(ProductFilter filter, fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginationProperties)
findByFilter
in interface IProductDAO
filter
- the filterpaginationProperties
- the pagination properties
protected java.util.List<javax.persistence.criteria.Predicate> buildPredicates(ProductFilter filter, javax.persistence.criteria.Root<Product> root, javax.persistence.criteria.CriteriaBuilder builder)
filter
- the filterroot
- the product rootbuilder
- the criteria builder
protected void buildCriteriaQuery(ProductFilter filter, javax.persistence.criteria.Root<Product> root, javax.persistence.criteria.CriteriaQuery<Product> query, javax.persistence.criteria.CriteriaBuilder builder)
filter
- the filterroot
- the category rootquery
- the criteria querybuilder
- the criteria builderprotected void buildSortQuery(ProductFilter filter, javax.persistence.criteria.Root<Product> root, javax.persistence.criteria.CriteriaQuery<Product> query, javax.persistence.criteria.CriteriaBuilder builder)
filter
- the filterroot
- the product rootquery
- the criteria querybuilder
- the criteria builderpublic java.util.List<Product> getAllByName(java.lang.String name)
getAllByName
in interface IProductDAO
name
- product name
public java.lang.Integer getCountProductALAfficheByDate(java.lang.String strDate)
getCountProductALAfficheByDate
in interface IProductDAO
strDate
- the current date
public java.lang.Integer getCountProductAVenirByDate(java.lang.String strDate)
getCountProductAVenirByDate
in interface IProductDAO
strDate
- the current date
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |