fr.paris.lutece.plugins.stock.business.offer
Class OfferGenreDAO
java.lang.Object
fr.paris.lutece.util.jpa.JPAGenericDAO<K,E>
fr.paris.lutece.portal.service.jpa.JPALuteceDAO<Integer,OfferGenre>
fr.paris.lutece.plugins.stock.business.offer.OfferGenreDAO
- All Implemented Interfaces:
- IOfferGenreDAO, fr.paris.lutece.util.jpa.IGenericDAO<Integer,OfferGenre>
public final class OfferGenreDAO
- extends fr.paris.lutece.portal.service.jpa.JPALuteceDAO<Integer,OfferGenre>
- implements IOfferGenreDAO
This class provides Data Access methods for partner type objects
| 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 |
OfferGenreDAO
public OfferGenreDAO()
getPluginName
public String getPluginName()
- Specified by:
getPluginName in class fr.paris.lutece.portal.service.jpa.JPALuteceDAO<Integer,OfferGenre>
findWithOffersLinked
public OfferGenre findWithOffersLinked(int nIdOfferGenre)
- Find the offer genre by its id. If an offer genre is found, its offers will be loaded
- Specified by:
findWithOffersLinked in interface IOfferGenreDAO
- Parameters:
nIdOfferGenre - the id of the wanted offer genre
- Returns:
- the
OfferGenre object with the same identifier as the parameter
findAllReferenceList
public fr.paris.lutece.util.ReferenceList findAllReferenceList()
- Build a
ReferenceList with all the offer genre
- Specified by:
findAllReferenceList in interface IOfferGenreDAO
- Returns:
- the
ReferenceList of all the offer genre
findByName
public List<OfferGenre> findByName(String strOfferName)
- Find offers genre by their name
- Specified by:
findByName in interface IOfferGenreDAO
- Parameters:
strOfferName - the name of the offer genre
- Returns:
- the list of all offer genre with the same name as the parameter
Copyright © 2013 Mairie de Paris. All Rights Reserved.