fr.paris.lutece.plugins.stock.business
Class ProductFilter

java.lang.Object
  extended by fr.paris.lutece.plugins.stock.business.ProductFilter
All Implemented Interfaces:
ISortableFilter
Direct Known Subclasses:
TicketProductFilter

public class ProductFilter
extends java.lang.Object
implements ISortableFilter

ProductFilter


Constructor Summary
ProductFilter()
           
 
Method Summary
 java.lang.Integer getIdCategory()
          Return the category id
 java.lang.Integer getIdProduct()
          Return the product id for filter
 java.lang.String getOrder()
          Get the colunm for order by
 java.lang.Float getPrice()
          Return the price to filter
 java.lang.Integer getStockQuantity()
          Return the stock quantity filtered
 boolean hasFilter()
          Return true if there is filters
 boolean isOrderAsc()
          Return true if the order is ascending
 void setIdCategory(java.lang.Integer idCategory)
          Set the category id
 void setIdProduct(java.lang.Integer idProduct)
          Set the product id to filter
 void setOrder(java.lang.String strOrder)
          Set the column to order by
 void setOrderAsc(boolean bOrderAsc)
          Set the order, true for ascending false for descending
 void setPrice(java.lang.Float price)
          Set the price to filter
 void setStockQuantity(java.lang.Integer stockQuantity)
          Set the quantity to filter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProductFilter

public ProductFilter()
Method Detail

getIdCategory

public java.lang.Integer getIdCategory()
Return the category id

Returns:
the category id

setIdCategory

public void setIdCategory(java.lang.Integer idCategory)
Set the category id

Parameters:
idCategory - the category id

isOrderAsc

public boolean isOrderAsc()
Return true if the order is ascending

Specified by:
isOrderAsc in interface ISortableFilter
Returns:
true if the order is ascending

setOrderAsc

public void setOrderAsc(boolean bOrderAsc)
Set the order, true for ascending false for descending

Specified by:
setOrderAsc in interface ISortableFilter
Parameters:
bOrderAsc - the wanted order ( true if the order is ascending )

getOrder

public java.lang.String getOrder()
Get the colunm for order by

Specified by:
getOrder in interface ISortableFilter
Returns:
the column name

setOrder

public void setOrder(java.lang.String strOrder)
Set the column to order by

Specified by:
setOrder in interface ISortableFilter
Parameters:
strOrder - the column name

getIdProduct

public java.lang.Integer getIdProduct()
Return the product id for filter

Returns:
the product id for filter

setIdProduct

public void setIdProduct(java.lang.Integer idProduct)
Set the product id to filter

Parameters:
idProduct - the product id to filter

getPrice

public java.lang.Float getPrice()
Return the price to filter

Returns:
the price to filter

setPrice

public void setPrice(java.lang.Float price)
Set the price to filter

Parameters:
price - the price to filter

getStockQuantity

public java.lang.Integer getStockQuantity()
Return the stock quantity filtered

Returns:
the quantity

setStockQuantity

public void setStockQuantity(java.lang.Integer stockQuantity)
Set the quantity to filter

Parameters:
stockQuantity - the quantity filtered

hasFilter

public boolean hasFilter()
Return true if there is filters

Returns:
boolean


Copyright © 2011 Mairie de Paris. All Rights Reserved.