fr.paris.lutece.plugins.stock.business.offer
Interface IOfferGenreDAO

All Superinterfaces:
fr.paris.lutece.util.jpa.IGenericDAO<java.lang.Integer,OfferGenre>
All Known Implementing Classes:
OfferGenreDAO

public interface IOfferGenreDAO
extends fr.paris.lutece.util.jpa.IGenericDAO<java.lang.Integer,OfferGenre>

IProviderDAO Interface


Method Summary
 fr.paris.lutece.util.ReferenceList findAllReferenceList()
          Build a ReferenceList with all the offer genre
 java.util.List<OfferGenre> findByName(java.lang.String strOfferName)
          Find offers genre by their name
 OfferGenre findWithOffersLinked(int nIdOfferGenre)
          Find the offer genre by its id.
 
Methods inherited from interface fr.paris.lutece.util.jpa.IGenericDAO
create, detach, findAll, findById, flush, remove, update
 

Method Detail

findWithOffersLinked

OfferGenre findWithOffersLinked(int nIdOfferGenre)
Find the offer genre by its id. If an offer genre is found, its offers will be loaded

Parameters:
nIdOfferGenre - the id of the wanted offer genre
Returns:
the OfferGenre object with the same identifier as the parameter

findAllReferenceList

fr.paris.lutece.util.ReferenceList findAllReferenceList()
Build a ReferenceList with all the offer genre

Returns:
the ReferenceList of all the offer genre

findByName

java.util.List<OfferGenre> findByName(java.lang.String strOfferName)
Find offers genre by their name

Parameters:
strOfferName - the name of the offer genre
Returns:
the list of all offer genre with the same name as the parameter


Copyright © 2012 Mairie de Paris. All Rights Reserved.