fr.paris.lutece.plugins.stock.business
Class ProviderDAO
java.lang.Object
fr.paris.lutece.util.jpa.JPAGenericDAO<K,E>
fr.paris.lutece.portal.service.jpa.JPALuteceDAO<java.lang.Integer,Provider>
fr.paris.lutece.plugins.stock.business.ProviderDAO
- All Implemented Interfaces:
- IProviderDAO, fr.paris.lutece.util.jpa.IGenericDAO<java.lang.Integer,Provider>
public final class ProviderDAO
- extends fr.paris.lutece.portal.service.jpa.JPALuteceDAO<java.lang.Integer,Provider>
- implements IProviderDAO
This class provides Data Access methods for Provider
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, findAll, findById, 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, findAll, findById, remove, update |
ProviderDAO
public ProviderDAO()
getPluginName
public java.lang.String getPluginName()
-
- Specified by:
getPluginName
in class fr.paris.lutece.portal.service.jpa.JPALuteceDAO<java.lang.Integer,Provider>
findAllWithProducts
public java.util.List<Provider> findAllWithProducts()
- Find all providers with product fetched
- Specified by:
findAllWithProducts
in interface IProviderDAO
- Returns:
- list of providers
findByIdWithProducts
public Provider findByIdWithProducts(int nId)
- Find provider by id with product fetched
- Specified by:
findByIdWithProducts
in interface IProviderDAO
- Parameters:
nId
- the id
- Returns:
- the provider found
findByFilter
public java.util.List<Provider> findByFilter(ProviderFilter filter)
- Find providers by filter
- Specified by:
findByFilter
in interface IProviderDAO
- Parameters:
filter
- the filter
- Returns:
- list of providers
Copyright © 2011 Mairie de Paris. All Rights Reserved.