|
||||||||||
| 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,Offer>
fr.paris.lutece.plugins.stock.business.offer.OfferDAO<K,E>
K - the key typeE - the entity typepublic class OfferDAO<K,E>
This class provides Data Access methods for Offer objects.
| Constructor Summary | |
|---|---|
OfferDAO()
|
|
| Method Summary | |
|---|---|
protected void |
buildCriteriaQuery(OfferFilter filter,
javax.persistence.criteria.Root<Offer> root,
javax.persistence.criteria.CriteriaQuery<Offer> query,
javax.persistence.criteria.CriteriaBuilder builder)
Build the criteria query used when offers are searched by filter. |
protected void |
buildSortQuery(OfferFilter filter,
javax.persistence.criteria.Root<Offer> root,
javax.persistence.criteria.CriteriaQuery<Offer> query,
javax.persistence.criteria.CriteriaBuilder builder)
Add the order by parameter to the query. |
fr.paris.lutece.plugins.stock.commons.ResultList<Offer> |
findByFilter(OfferFilter filter,
fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginationProperties)
Find offers by filter. |
List<Offer> |
findByProduct(Integer productId,
OfferFilter filter)
Returns offer list of a product |
String |
getPluginName()
|
Integer |
getQuantity(Integer offerId)
Returns offer quantity |
| 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 OfferDAO()
| Method Detail |
|---|
public String getPluginName()
getPluginName in class fr.paris.lutece.portal.service.jpa.JPALuteceDAO<Integer,Offer>
public fr.paris.lutece.plugins.stock.commons.ResultList<Offer> findByFilter(OfferFilter filter,
fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginationProperties)
findByFilter in interface IOfferDAOfilter - the filterpaginationProperties - the pagination properties
protected void buildCriteriaQuery(OfferFilter filter,
javax.persistence.criteria.Root<Offer> root,
javax.persistence.criteria.CriteriaQuery<Offer> query,
javax.persistence.criteria.CriteriaBuilder builder)
filter - the filterroot - the offer rootquery - the criteria querybuilder - the criteria builder
protected void buildSortQuery(OfferFilter filter,
javax.persistence.criteria.Root<Offer> root,
javax.persistence.criteria.CriteriaQuery<Offer> query,
javax.persistence.criteria.CriteriaBuilder builder)
filter - the filterroot - the offer rootquery - the criteria querybuilder - the criteria builder
public List<Offer> findByProduct(Integer productId,
OfferFilter filter)
findByProduct in interface IOfferDAOproductId - id productfilter - offer filter
public Integer getQuantity(Integer offerId)
getQuantity in interface IOfferDAOofferId - offer id
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||