|
||||||||||
| 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<K,E>
fr.paris.lutece.plugins.stock.commons.dao.AbstractStockDAO<Integer,Category>
fr.paris.lutece.plugins.stock.business.category.CategoryDAO
public final class CategoryDAO
This class provides Data Access methods for Person objects
| Constructor Summary | |
|---|---|
CategoryDAO()
|
|
| Method Summary | |
|---|---|
fr.paris.lutece.plugins.stock.commons.ResultList<Category> |
findAll(List<String> orderList)
Find all category |
List<Category> |
findByFilter(CategoryFilter filter)
Find category list 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 |
List<Category> |
findByFilterWithChildren(CategoryFilter filter)
Find category with children fetched by filter |
Category |
findByIdWithChildren(Integer idCategory)
Finds a category and all his subcategories and fetch children |
Category |
findByIdWithParent(Integer idCategory)
Finds a category and fetch parent |
Category |
findByIdWithProduct(Integer idCategory)
Finds a category and fetch products |
List<Category> |
getAllByName(String name)
Returns categories by name |
String |
getPluginName()
|
List<Category> |
selectAllChildrenWithChildrenWithProduct(Integer idCategory)
Finds all category's children and fetch children |
List<Category> |
selectAllFirstLevelWithChildrenWithProduct()
Finds all first level categories (i.e. parent == null ) and fetch children |
| Methods inherited from class fr.paris.lutece.plugins.stock.commons.dao.AbstractStockDAO |
|---|
addRestriction, createPagedQuery, findAll |
| Methods inherited from class fr.paris.lutece.portal.service.jpa.JPALuteceDAO |
|---|
createNativeQuery, getEntityManagerFactory |
| Methods inherited from class fr.paris.lutece.util.jpa.JPAGenericDAO |
|---|
create, detach, findAll, findById, flush, 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, detach, findAll, findById, flush, remove, update |
| Constructor Detail |
|---|
public CategoryDAO()
| Method Detail |
|---|
public String getPluginName()
getPluginName in class fr.paris.lutece.portal.service.jpa.JPALuteceDAO<Integer,Category>public List<Category> selectAllFirstLevelWithChildrenWithProduct()
selectAllFirstLevelWithChildrenWithProduct in interface ICategoryDAOpublic List<Category> selectAllChildrenWithChildrenWithProduct(Integer idCategory)
selectAllChildrenWithChildrenWithProduct in interface ICategoryDAOidCategory - the id of upper category
public Category findByIdWithChildren(Integer idCategory)
findByIdWithChildren in interface ICategoryDAOidCategory - the id of upper category
public Category findByIdWithProduct(Integer idCategory)
findByIdWithProduct in interface ICategoryDAOidCategory - the id of the searched category
public Category findByIdWithParent(Integer idCategory)
findByIdWithParent in interface ICategoryDAOidCategory - the id of the searched category
public fr.paris.lutece.plugins.stock.commons.ResultList<Category> findByFilter(CategoryFilter filter,
fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginationProperties)
findByFilter in interface ICategoryDAOfilter - the filterpaginationProperties - properties for pagination
public List<Category> findByFilterWithChildren(CategoryFilter filter)
findByFilterWithChildren in interface ICategoryDAOfilter - the filter
public List<Category> findByFilter(CategoryFilter filter)
findByFilter in interface ICategoryDAOfilter - the filter
public List<Category> getAllByName(String name)
getAllByName in interface ICategoryDAOname - category name
public fr.paris.lutece.plugins.stock.commons.ResultList<Category> findAll(List<String> orderList)
findAll in interface ICategoryDAOorderList - the order list
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||