fr.paris.lutece.plugins.stock.business.product
Class Product

java.lang.Object
  extended by fr.paris.lutece.plugins.stock.business.StockEntityBean<Product>
      extended by fr.paris.lutece.plugins.stock.business.product.Product
All Implemented Interfaces:
fr.paris.lutece.plugins.stock.utils.EntityBean, java.io.Serializable

@Entity
public class Product
extends StockEntityBean<Product>

Product.

See Also:
Serialized Form

Constructor Summary
Product()
          Constructor.
Product(Product product)
          Constructor from an other product object.
 
Method Summary
 java.util.Set<ProductAttributeDate> getAttributeDateList()
          Returns dynamic attributes list.
 java.util.Set<ProductAttribute> getAttributeList()
          Get the product list.
 java.util.Set<ProductAttributeNum> getAttributeNumList()
          Returns dynamic attributes list.
 Category getCategory()
          Get the category linked to the product.
 java.lang.String getDescription()
          Return the product description.
 java.lang.Integer getId()
          Return the product id.
 java.lang.String getName()
          Return the product name.
 java.lang.Float getPrice()
          Return the price.
 Provider getProvider()
          Get the provider linked to the product.
 void setAttributeDateList(java.util.Set<ProductAttributeDate> dateAttribute)
          Sets the attribute date list.
 void setAttributeList(java.util.Set<ProductAttribute> stringAttribute)
          Sets the attribute list.
 void setAttributeNumList(java.util.Set<ProductAttributeNum> numAttribute)
          Set attribute list.
 void setCategory(Category category)
          Set the category linked to the product.
 void setDescription(java.lang.String description)
          Set the product description.
 void setId(java.lang.Integer idProduct)
          Set the product id.
 void setName(java.lang.String name)
          Set the product name.
 void setPrice(java.lang.Float price)
          Set the price.
 void setProvider(Provider provider)
          Set the provider linked to the product.
 
Methods inherited from class fr.paris.lutece.plugins.stock.business.StockEntityBean
getAttributeDateMap, getAttributeMap, getAttributeNumMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Product

public Product()
Constructor.


Product

public Product(Product product)
Constructor from an other product object.

Parameters:
product - the product
Method Detail

getId

public java.lang.Integer getId()
Return the product id.

Returns:
the product id

setId

public void setId(java.lang.Integer idProduct)
Set the product id.

Parameters:
idProduct - the product id

getDescription

public java.lang.String getDescription()
Return the product description.

Returns:
the description

setDescription

public void setDescription(java.lang.String description)
Set the product description.

Parameters:
description - the product description

getName

public java.lang.String getName()
Return the product name.

Returns:
the name

setName

public void setName(java.lang.String name)
Set the product name.

Parameters:
name - the product name

getPrice

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

Returns:
the price

setPrice

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

Parameters:
price - the price

getCategory

public Category getCategory()
Get the category linked to the product.

Returns:
the category

setCategory

public void setCategory(Category category)
Set the category linked to the product.

Parameters:
category - the category

getProvider

public Provider getProvider()
Get the provider linked to the product.

Returns:
the provider

setProvider

public void setProvider(Provider provider)
Set the provider linked to the product.

Parameters:
provider - the provider

getAttributeList

public java.util.Set<ProductAttribute> getAttributeList()
Get the product list.

Specified by:
getAttributeList in class StockEntityBean<Product>
Returns:
the product list

setAttributeList

public void setAttributeList(java.util.Set<ProductAttribute> stringAttribute)
Sets the attribute list.

Parameters:
stringAttribute - the new attribute list

getAttributeDateList

public java.util.Set<ProductAttributeDate> getAttributeDateList()
Returns dynamic attributes list.

Specified by:
getAttributeDateList in class StockEntityBean<Product>
Returns:
dynamic attributes list

setAttributeDateList

public void setAttributeDateList(java.util.Set<ProductAttributeDate> dateAttribute)
Sets the attribute date list.

Parameters:
dateAttribute - the new attribute date list

getAttributeNumList

public java.util.Set<ProductAttributeNum> getAttributeNumList()
Returns dynamic attributes list.

Specified by:
getAttributeNumList in class StockEntityBean<Product>
Returns:
dynamic attributes list

setAttributeNumList

public void setAttributeNumList(java.util.Set<ProductAttributeNum> numAttribute)
Set attribute list.

Parameters:
numAttribute - numAttribute


Copyright © 2012 Mairie de Paris. All Rights Reserved.