fr.paris.lutece.plugins.stock.business.product
Interface IProductDAO

All Superinterfaces:
fr.paris.lutece.util.jpa.IGenericDAO<java.lang.Integer,Product>, fr.paris.lutece.plugins.stock.commons.dao.IStockDAO<java.lang.Integer,Product>
All Known Implementing Classes:
ProductDAO

public interface IProductDAO
extends fr.paris.lutece.plugins.stock.commons.dao.IStockDAO<java.lang.Integer,Product>

IPersonDAO Interface


Method Summary
 java.util.List<Product> findByFilter(ProductFilter filter)
          Finds by filter
 fr.paris.lutece.plugins.stock.commons.ResultList<Product> findByFilter(ProductFilter filter, fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginationProperties)
          Finds by filter
 java.util.List<Product> getAllByName(java.lang.String name)
          Returns products by name
 java.lang.Integer getCountProductALAfficheByDate(java.lang.String strDate)
          Return the number of current product
 java.lang.Integer getCountProductAVenirByDate(java.lang.String strDate)
          Return the number of future product
 
Methods inherited from interface fr.paris.lutece.plugins.stock.commons.dao.IStockDAO
findAll
 
Methods inherited from interface fr.paris.lutece.util.jpa.IGenericDAO
create, detach, findAll, findById, flush, remove, update
 

Method Detail

findByFilter

java.util.List<Product> findByFilter(ProductFilter filter)
Finds by filter

Parameters:
filter - the filter
Returns:
the product list

findByFilter

fr.paris.lutece.plugins.stock.commons.ResultList<Product> findByFilter(ProductFilter filter,
                                                                       fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginationProperties)
Finds by filter

Parameters:
filter - the filter
paginationProperties - the pagination properties
Returns:
the product list

getAllByName

java.util.List<Product> getAllByName(java.lang.String name)
Returns products by name

Parameters:
name - product name
Returns:
products list

getCountProductALAfficheByDate

java.lang.Integer getCountProductALAfficheByDate(java.lang.String strDate)
Return the number of current product

Parameters:
strDate - the current date
Returns:
number of product

getCountProductAVenirByDate

java.lang.Integer getCountProductAVenirByDate(java.lang.String strDate)
Return the number of future product

Parameters:
strDate - the current date
Returns:
number of product


Copyright © 2012 Mairie de Paris. All Rights Reserved.