fr.paris.lutece.plugins.stock.business.offer
Class OfferGenreDAO

java.lang.Object
  extended by fr.paris.lutece.util.jpa.JPAGenericDAO<K,E>
      extended by fr.paris.lutece.portal.service.jpa.JPALuteceDAO<java.lang.Integer,OfferGenre>
          extended by fr.paris.lutece.plugins.stock.business.offer.OfferGenreDAO
All Implemented Interfaces:
IOfferGenreDAO, fr.paris.lutece.util.jpa.IGenericDAO<java.lang.Integer,OfferGenre>

public final class OfferGenreDAO
extends fr.paris.lutece.portal.service.jpa.JPALuteceDAO<java.lang.Integer,OfferGenre>
implements IOfferGenreDAO

This class provides Data Access methods for partner type objects


Constructor Summary
OfferGenreDAO()
           
 
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.
 java.lang.String getPluginName()
           
 
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

OfferGenreDAO

public OfferGenreDAO()
Method Detail

getPluginName

public java.lang.String getPluginName()
Specified by:
getPluginName in class fr.paris.lutece.portal.service.jpa.JPALuteceDAO<java.lang.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 java.util.List<OfferGenre> findByName(java.lang.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 © 2012 Mairie de Paris. All Rights Reserved.