|
||||||||||
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<java.lang.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(java.util.List<java.lang.String> orderList)
Find all category |
java.util.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 |
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.util.List<Category> |
getAllByName(java.lang.String name)
Returns categories by name |
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.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 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 ICategoryDAO
public java.util.List<Category> selectAllChildrenWithChildrenWithProduct(java.lang.Integer idCategory)
selectAllChildrenWithChildrenWithProduct
in interface ICategoryDAO
idCategory
- the id of upper category
public Category findByIdWithChildren(java.lang.Integer idCategory)
findByIdWithChildren
in interface ICategoryDAO
idCategory
- the id of upper category
public Category findByIdWithProduct(java.lang.Integer idCategory)
findByIdWithProduct
in interface ICategoryDAO
idCategory
- the id of the searched category
public Category findByIdWithParent(java.lang.Integer idCategory)
findByIdWithParent
in interface ICategoryDAO
idCategory
- 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 ICategoryDAO
filter
- the filterpaginationProperties
- properties for pagination
public java.util.List<Category> findByFilterWithChildren(CategoryFilter filter)
findByFilterWithChildren
in interface ICategoryDAO
filter
- the filter
public java.util.List<Category> findByFilter(CategoryFilter filter)
findByFilter
in interface ICategoryDAO
filter
- the filter
public java.util.List<Category> getAllByName(java.lang.String name)
getAllByName
in interface ICategoryDAO
name
- category name
public fr.paris.lutece.plugins.stock.commons.ResultList<Category> findAll(java.util.List<java.lang.String> orderList)
findAll
in interface ICategoryDAO
orderList
- the order list
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |