|
||||||||||
| 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<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 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. |
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. |
List<Product> |
getAllByName(String name)
Returns products by name |
Integer |
getCountProductALAfficheByDate(String strDate)
Return the number of current product |
Integer |
getCountProductAVenirByDate(String strDate)
Return the number of future product |
String |
getPluginName()
|
Boolean |
isFull(Integer productId)
Check if product is ful |
Boolean |
isType(Integer productId,
Integer genreId)
Check if product is type of representation |
| 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 String getPluginName()
getPluginName in class fr.paris.lutece.portal.service.jpa.JPALuteceDAO<Integer,Product>public List<Product> findByFilter(ProductFilter filter)
findByFilter in interface IProductDAOfilter - 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 IProductDAOfilter - the filterpaginationProperties - the pagination properties
protected 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 builder
protected 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 List<Product> getAllByName(String name)
getAllByName in interface IProductDAOname - product name
public Integer getCountProductALAfficheByDate(String strDate)
getCountProductALAfficheByDate in interface IProductDAOstrDate - the current date
public Integer getCountProductAVenirByDate(String strDate)
getCountProductAVenirByDate in interface IProductDAOstrDate - the current date
public Boolean isFull(Integer productId)
isFull in interface IProductDAOproductId - the product id
public Boolean isType(Integer productId,
Integer genreId)
isType in interface IProductDAOgenreId - the genre to check
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||