fr.paris.lutece.plugins.stock.business
Interface ICategoryDAO

All Superinterfaces:
fr.paris.lutece.util.jpa.IGenericDAO<java.lang.Integer,Category>
All Known Implementing Classes:
CategoryDAO

public interface ICategoryDAO
extends fr.paris.lutece.util.jpa.IGenericDAO<java.lang.Integer,Category>

IPersonDAO Interface


Method Summary
 java.util.List<Category> findByFilter(CategoryFilter filter)
          Finds by filter
 java.util.List<Category> findByFilterWithChildren(CategoryFilter filter)
          Finds by filter and fetch children
 Category findByIdWithChildren(java.lang.Integer idCategory)
          Finds a category and all his subcategories and fetch children
 Category findByIdWithParent(java.lang.Integer idCategory)
          Finds a category and fetch parent
 Category findByIdWithProduct(java.lang.Integer idCategory)
          Finds a category and fetch products
 java.util.List<Category> selectAllChildrenWithChildrenWithProduct(java.lang.Integer idCategory)
          Finds all category's children and fetch children
 java.util.List<Category> selectAllFirstLevelWithChildrenWithProduct()
          Finds all first level categories (i.e. parent == null ) and fetch children
 
Methods inherited from interface fr.paris.lutece.util.jpa.IGenericDAO
create, findAll, findById, remove, update
 

Method Detail

selectAllFirstLevelWithChildrenWithProduct

java.util.List<Category> selectAllFirstLevelWithChildrenWithProduct()
Finds all first level categories (i.e. parent == null ) and fetch children

Returns:
all first level categories

selectAllChildrenWithChildrenWithProduct

java.util.List<Category> selectAllChildrenWithChildrenWithProduct(java.lang.Integer idCategory)
Finds all category's children and fetch children

Parameters:
idCategory - the id of upper category
Returns:
all category's children

findByIdWithChildren

Category findByIdWithChildren(java.lang.Integer idCategory)
Finds a category and all his subcategories and fetch children

Parameters:
idCategory - the id of upper category
Returns:
the category

findByIdWithParent

Category findByIdWithParent(java.lang.Integer idCategory)
Finds a category and fetch parent

Parameters:
idCategory - the id of the searched category
Returns:
the category

findByIdWithProduct

Category findByIdWithProduct(java.lang.Integer idCategory)
Finds a category and fetch products

Parameters:
idCategory - the id of the searched category
Returns:
the category

findByFilterWithChildren

java.util.List<Category> findByFilterWithChildren(CategoryFilter filter)
Finds by filter and fetch children

Parameters:
filter - the filter
Returns:
the category list

findByFilter

java.util.List<Category> findByFilter(CategoryFilter filter)
Finds by filter

Parameters:
filter - the filter
Returns:
the category list


Copyright © 2011 Mairie de Paris. All Rights Reserved.