public interface ICategoryDAO extends fr.paris.lutece.util.jpa.IGenericDAO<Integer,Category>
Modifier and Type | Method and Description |
---|---|
fr.paris.lutece.plugins.stock.commons.ResultList<Category> |
findAll(List<String> orderList)
Return all category
|
List<Category> |
findByFilter(CategoryFilter filter)
Finds 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)
Finds by filter and fetch children
|
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
|
List<Category> |
selectAllChildrenWithChildrenWithProduct(Integer idCategory)
Finds all category's children and fetch children
|
List<Category> |
selectAllFirstLevelWithChildrenWithProduct()
Finds all first level categories (i.e.
|
List<Category> selectAllFirstLevelWithChildrenWithProduct()
List<Category> selectAllChildrenWithChildrenWithProduct(Integer idCategory)
idCategory
- the id of upper categoryCategory findByIdWithChildren(Integer idCategory)
idCategory
- the id of upper categoryCategory findByIdWithParent(Integer idCategory)
idCategory
- the id of the searched categoryCategory findByIdWithProduct(Integer idCategory)
idCategory
- the id of the searched categoryList<Category> findByFilterWithChildren(CategoryFilter filter)
filter
- the filterfr.paris.lutece.plugins.stock.commons.ResultList<Category> findByFilter(CategoryFilter filter, fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginationProperties)
filter
- the filterpaginationProperties
- properties for paginationList<Category> findByFilter(CategoryFilter filter)
filter
- the filterList<Category> getAllByName(String name)
name
- category nameCopyright © 2021 City of Paris. All rights reserved.