|
||||||||||
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,P>
fr.paris.lutece.plugins.stock.business.AbstractProductDAO<K,P,F,P_>
F
- the product filterK
- the primary keyP
- the productP_
- the product metamodelpublic class AbstractProductDAO<K,P extends Product,F extends ProductFilter,P_ extends Product_>
This class provides Data Access methods for Person objects
Constructor Summary | |
---|---|
AbstractProductDAO()
Constructor |
Method Summary | |
---|---|
protected java.util.List<javax.persistence.criteria.Predicate> |
buildPredicates(F filter,
javax.persistence.criteria.Root<P> root,
javax.persistence.criteria.CriteriaBuilder builder)
Build the predicate list from filter |
protected void |
buildSortQuery(F filter,
javax.persistence.criteria.Root<P> root,
javax.persistence.criteria.CriteriaQuery<P> query,
javax.persistence.criteria.CriteriaBuilder builder)
Build the sort query |
java.util.List<P> |
findByFilter(F filter)
Find product list by filter |
java.lang.String |
getPluginName()
|
java.lang.Class<P> |
getProductClass()
Get the product P class |
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 AbstractProductDAO()
Method Detail |
---|
public java.lang.String getPluginName()
getPluginName
in class fr.paris.lutece.portal.service.jpa.JPALuteceDAO<K,P extends Product>
public java.lang.Class<P> getProductClass()
public java.util.List<P> findByFilter(F filter)
findByFilter
in interface IProductDAO<K,P extends Product,F extends ProductFilter>
filter
- the filter
protected java.util.List<javax.persistence.criteria.Predicate> buildPredicates(F filter, javax.persistence.criteria.Root<P> root, javax.persistence.criteria.CriteriaBuilder builder)
filter
- the filterroot
- the product rootbuilder
- the criteria builder
protected void buildSortQuery(F filter, javax.persistence.criteria.Root<P> root, javax.persistence.criteria.CriteriaQuery<P> query, javax.persistence.criteria.CriteriaBuilder builder)
filter
- the filterroot
- the product rootquery
- the criteria querybuilder
- the criteria builder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |