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

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

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

IPersonDAO Interface


Method Summary
 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
 List<Product> getAllByName(String name)
          Returns products by name
 Integer getCountProductALAfficheByDate(String strDate)
          Return the number of current product
 Integer getCountProductAVenirByDate(String strDate)
          Return the number of future product
 Boolean isFull(Integer productId)
          Check if product is ful
 Boolean isType(Integer productId, Integer genreId)
          Check if product is type of representation
 
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

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

List<Product> getAllByName(String name)
Returns products by name

Parameters:
name - product name
Returns:
products list

getCountProductALAfficheByDate

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

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

getCountProductAVenirByDate

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

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

isFull

Boolean isFull(Integer productId)
Check if product is ful

Parameters:
productId - the product id
Returns:
true if full, false otherwise

isType

Boolean isType(Integer productId,
               Integer genreId)
Check if product is type of representation

Parameters:
genreId - the genre to check
Returns:
true if product is, false otherwise


Copyright © 2014 Mairie de Paris. All Rights Reserved.