|
||||||||||
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,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. |
java.util.List<Offer> |
findByProduct(java.lang.Integer productId,
OfferFilter filter)
Returns offer list of a product |
java.lang.String |
getPluginName()
|
java.lang.Integer |
getQuantity(java.lang.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 java.lang.String getPluginName()
getPluginName
in class fr.paris.lutece.portal.service.jpa.JPALuteceDAO<java.lang.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 IOfferDAO
filter
- 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 builderprotected 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 builderpublic java.util.List<Offer> findByProduct(java.lang.Integer productId, OfferFilter filter)
findByProduct
in interface IOfferDAO
productId
- id productfilter
- offer filter
public java.lang.Integer getQuantity(java.lang.Integer offerId)
getQuantity
in interface IOfferDAO
offerId
- offer id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |