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

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

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

ICategoryHome the category home interface


Method Summary
 java.util.List<Category> findAllChildrenWithChildren(java.lang.Integer idCategory)
          Finds all category's children and fetch children
 java.util.List<Category> findAllFirstLevelWithChildren()
          Finds all categories (first level) and fetch children
 java.util.List<Category> findByFilter(CategoryFilter filter)
          Finds by filter
 java.util.List<Category> findByFilterWithChildren(CategoryFilter filter)
          Finds by filter and fetch children
 Category findByIdWithParent(java.lang.Integer nIdCategory)
          Finds a category and fetch parent
 Category findByIdWithProduct(java.lang.Integer nIdCategory)
          Finds a category and fetch product
 Category findByPrimarykeyWithChildren(java.lang.Integer nIdCategory)
          Finds a category and all his subcategories and fetch children
 
Methods inherited from interface fr.paris.lutece.util.jpa.IGenericHome
create, findAll, findByPrimaryKey, remove, update
 

Method Detail

findAllFirstLevelWithChildren

@Transactional(readOnly=true)
java.util.List<Category> findAllFirstLevelWithChildren()
Finds all categories (first level) and fetch children

Returns:
all first level categories

findAllChildrenWithChildren

@Transactional(readOnly=true)
java.util.List<Category> findAllChildrenWithChildren(java.lang.Integer idCategory)
Finds all category's children and fetch children

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

findByPrimarykeyWithChildren

@Transactional(readOnly=true)
Category findByPrimarykeyWithChildren(java.lang.Integer nIdCategory)
Finds a category and all his subcategories and fetch children

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

findByIdWithParent

@Transactional(readOnly=true)
Category findByIdWithParent(java.lang.Integer nIdCategory)
Finds a category and fetch parent

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

findByIdWithProduct

@Transactional(readOnly=true)
Category findByIdWithProduct(java.lang.Integer nIdCategory)
Finds a category and fetch product

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

findByFilterWithChildren

@Transactional(readOnly=true)
java.util.List<Category> findByFilterWithChildren(CategoryFilter filter)
Finds by filter and fetch children

Parameters:
filter - the filter
Returns:
the category list

findByFilter

@Transactional(readOnly=true)
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.