|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.util.jpa.JPAGenericDAO<K,E>
fr.paris.lutece.portal.service.jpa.JPALuteceDAO<java.lang.Integer,Category>
fr.paris.lutece.plugins.stock.business.CategoryDAO
public final class CategoryDAO
This class provides Data Access methods for Person objects
| Constructor Summary | |
|---|---|
CategoryDAO()
|
|
| Method Summary | |
|---|---|
java.util.List<Category> |
findByFilter(CategoryFilter filter)
Find category list by filter |
java.util.List<Category> |
findByFilterWithChildren(CategoryFilter filter)
Find category with children fetched by filter |
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.lang.String |
getPluginName()
|
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 class fr.paris.lutece.portal.service.jpa.JPALuteceDAO |
|---|
createNativeQuery, getEntityManagerFactory |
| Methods inherited from class fr.paris.lutece.util.jpa.JPAGenericDAO |
|---|
create, findAll, findById, getEM, getEntityClass, getEntityClassName, remove, 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.IGenericDAO |
|---|
create, findAll, findById, remove, update |
| Constructor Detail |
|---|
public CategoryDAO()
| Method Detail |
|---|
public java.lang.String getPluginName()
getPluginName in class fr.paris.lutece.portal.service.jpa.JPALuteceDAO<java.lang.Integer,Category>public java.util.List<Category> selectAllFirstLevelWithChildrenWithProduct()
selectAllFirstLevelWithChildrenWithProduct in interface ICategoryDAOpublic java.util.List<Category> selectAllChildrenWithChildrenWithProduct(java.lang.Integer idCategory)
selectAllChildrenWithChildrenWithProduct in interface ICategoryDAOidCategory - the id of upper category
public Category findByIdWithChildren(java.lang.Integer idCategory)
findByIdWithChildren in interface ICategoryDAOidCategory - the id of upper category
public Category findByIdWithProduct(java.lang.Integer idCategory)
findByIdWithProduct in interface ICategoryDAOidCategory - the id of the searched category
public Category findByIdWithParent(java.lang.Integer idCategory)
findByIdWithParent in interface ICategoryDAOidCategory - the id of the searched category
public java.util.List<Category> findByFilter(CategoryFilter filter)
findByFilter in interface ICategoryDAOfilter - the filter
public java.util.List<Category> findByFilterWithChildren(CategoryFilter filter)
findByFilterWithChildren in interface ICategoryDAOfilter - the filter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||