fr.paris.lutece.plugins.stock.business.category
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
 fr.paris.lutece.plugins.stock.commons.ResultList<Category> findAll(java.util.List<java.lang.String> orderList)
          Return all category
 java.util.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
 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> getAllByName(java.lang.String name)
          Returns categories by name
 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, detach, findAll, findById, flush, 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

fr.paris.lutece.plugins.stock.commons.ResultList<Category> findByFilter(CategoryFilter filter,
                                                                        fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginationProperties)
Finds by filter

Parameters:
filter - the filter
paginationProperties - properties for pagination
Returns:
the category list

findByFilter

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

Parameters:
filter - the filter
Returns:
the category list

getAllByName

java.util.List<Category> getAllByName(java.lang.String name)
Returns categories by name

Parameters:
name - category name
Returns:
list of categories

findAll

fr.paris.lutece.plugins.stock.commons.ResultList<Category> findAll(java.util.List<java.lang.String> orderList)
Return all category

Parameters:
orderList - the order list
Returns:
the list of all category


Copyright © 2012 Mairie de Paris. All Rights Reserved.