public final class OfferGenreDAO extends fr.paris.lutece.portal.service.jpa.JPALuteceDAO<Integer,OfferGenre> implements IOfferGenreDAO
Constructor and Description |
---|
OfferGenreDAO() |
Modifier and Type | Method and Description |
---|---|
fr.paris.lutece.util.ReferenceList |
findAllReferenceList()
Build a
ReferenceList with all the offer genre |
List<OfferGenre> |
findByName(String strOfferName)
Find offers genre by their name
|
OfferGenre |
findWithOffersLinked(int nIdOfferGenre)
Find the offer genre by its id.
|
String |
getPluginName() |
createNativeQuery, getEntityManagerFactory
create, detach, findAll, findById, flush, getEM, getEntityClass, getEntityClassName, remove, update
public String getPluginName()
getPluginName
in class fr.paris.lutece.portal.service.jpa.JPALuteceDAO<Integer,OfferGenre>
public OfferGenre findWithOffersLinked(int nIdOfferGenre)
findWithOffersLinked
in interface IOfferGenreDAO
nIdOfferGenre
- the id of the wanted offer genreOfferGenre
object with the same identifier as the parameterpublic fr.paris.lutece.util.ReferenceList findAllReferenceList()
ReferenceList
with all the offer genrefindAllReferenceList
in interface IOfferGenreDAO
ReferenceList
of all the offer genrepublic List<OfferGenre> findByName(String strOfferName)
findByName
in interface IOfferGenreDAO
strOfferName
- the name of the offer genreCopyright © 2020 City of Paris. All rights reserved.