public final class CategoryDAO extends fr.paris.lutece.plugins.stock.commons.dao.AbstractStockDAO<Integer,Category> implements ICategoryDAO
| Constructor and Description |
|---|
CategoryDAO() |
| Modifier and Type | Method and Description |
|---|---|
fr.paris.lutece.plugins.stock.commons.ResultList<Category> |
findAll(List<String> orderList)
Find all category
|
List<Category> |
findByFilter(CategoryFilter filter)
Find category list by filter
|
fr.paris.lutece.plugins.stock.commons.ResultList<Category> |
findByFilter(CategoryFilter filter,
fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginationProperties)
Finds by filter
|
List<Category> |
findByFilterWithChildren(CategoryFilter filter)
Find category with children fetched by filter
|
Category |
findByIdWithChildren(Integer idCategory)
Finds a category and all his subcategories and fetch children
|
Category |
findByIdWithParent(Integer idCategory)
Finds a category and fetch parent
|
Category |
findByIdWithProduct(Integer idCategory)
Finds a category and fetch products
|
List<Category> |
getAllByName(String name)
Returns categories by name
|
String |
getPluginName() |
List<Category> |
selectAllChildrenWithChildrenWithProduct(Integer idCategory)
Finds all category's children and fetch children
|
List<Category> |
selectAllFirstLevelWithChildrenWithProduct()
Finds all first level categories (i.e.
|
addRestriction, createPagedQuery, findAllcreateNativeQuery, getEntityManagerFactorycreate, detach, findAll, findById, flush, getEM, getEntityClass, getEntityClassName, remove, updatepublic String getPluginName()
public List<Category> selectAllFirstLevelWithChildrenWithProduct()
selectAllFirstLevelWithChildrenWithProduct in interface ICategoryDAOpublic List<Category> selectAllChildrenWithChildrenWithProduct(Integer idCategory)
selectAllChildrenWithChildrenWithProduct in interface ICategoryDAOidCategory - the id of upper categorypublic Category findByIdWithChildren(Integer idCategory)
findByIdWithChildren in interface ICategoryDAOidCategory - the id of upper categorypublic Category findByIdWithProduct(Integer idCategory)
findByIdWithProduct in interface ICategoryDAOidCategory - the id of the searched categorypublic Category findByIdWithParent(Integer idCategory)
findByIdWithParent in interface ICategoryDAOidCategory - the id of the searched categorypublic fr.paris.lutece.plugins.stock.commons.ResultList<Category> findByFilter(CategoryFilter filter, fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginationProperties)
findByFilter in interface ICategoryDAOfilter - the filterpaginationProperties - properties for paginationpublic List<Category> findByFilterWithChildren(CategoryFilter filter)
findByFilterWithChildren in interface ICategoryDAOfilter - the filterpublic List<Category> findByFilter(CategoryFilter filter)
findByFilter in interface ICategoryDAOfilter - the filterpublic List<Category> getAllByName(String name)
getAllByName in interface ICategoryDAOname - category namepublic fr.paris.lutece.plugins.stock.commons.ResultList<Category> findAll(List<String> orderList)
findAll in interface ICategoryDAOorderList - the order listCopyright © 2019 City of Paris. All rights reserved.