fr.paris.lutece.plugins.stock.business
Class CategoryHome

java.lang.Object
  extended by fr.paris.lutece.portal.service.jpa.AbstractLuteceHome<java.lang.Integer,Category,ICategoryDAO>
      extended by fr.paris.lutece.plugins.stock.business.CategoryHome
All Implemented Interfaces:
ICategoryHome, fr.paris.lutece.util.jpa.IGenericHome<java.lang.Integer,Category>

public final class CategoryHome
extends fr.paris.lutece.portal.service.jpa.AbstractLuteceHome<java.lang.Integer,Category,ICategoryDAO>
implements ICategoryHome

This class provides instances management methods (create, find, ...) for Person objects


Constructor Summary
CategoryHome()
           
 
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 class fr.paris.lutece.portal.service.jpa.AbstractLuteceHome
create, findAll, findByPrimaryKey, getDao, remove, setDao, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.paris.lutece.util.jpa.IGenericHome
create, findAll, findByPrimaryKey, remove, update
 

Constructor Detail

CategoryHome

public CategoryHome()
Method Detail

findAllFirstLevelWithChildren

public java.util.List<Category> findAllFirstLevelWithChildren()
Finds all categories (first level) and fetch children

Specified by:
findAllFirstLevelWithChildren in interface ICategoryHome
Returns:
all first level categories

findAllChildrenWithChildren

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

Specified by:
findAllChildrenWithChildren in interface ICategoryHome
Parameters:
idCategory - the id of upper category
Returns:
all category's children

findByPrimarykeyWithChildren

public Category findByPrimarykeyWithChildren(java.lang.Integer nIdCategory)
Finds a category and all his subcategories and fetch children

Specified by:
findByPrimarykeyWithChildren in interface ICategoryHome
Parameters:
nIdCategory - the id of upper category
Returns:
the category

findByIdWithParent

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

Specified by:
findByIdWithParent in interface ICategoryHome
Parameters:
nIdCategory - the id of the searched category
Returns:
the category

findByIdWithProduct

public Category findByIdWithProduct(java.lang.Integer nIdCategory)
Finds a category and fetch product

Specified by:
findByIdWithProduct in interface ICategoryHome
Parameters:
nIdCategory - the id of the searched category
Returns:
the category

findByFilterWithChildren

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

Specified by:
findByFilterWithChildren in interface ICategoryHome
Parameters:
filter - the filter
Returns:
the category list

findByFilter

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

Specified by:
findByFilter in interface ICategoryHome
Parameters:
filter - the filter
Returns:
the category list


Copyright © 2011 Mairie de Paris. All Rights Reserved.