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

java.lang.Object
  extended by fr.paris.lutece.plugins.stock.business.Product
Direct Known Subclasses:
TicketProduct

@Entity
public class Product
extends java.lang.Object

Product


Constructor Summary
Product()
          Constructor
Product(Product product)
          Constructor from an other product object
 
Method Summary
 boolean equals(java.lang.Object obj)
          
 Category getCategory()
          Get the category linked to the product
 int getIdProduct()
          Return the product id
 ObjectDefinition getObjectDefinition()
          Get the object definition for this kind of product
 float getPrice()
          Return the price
 int getStockQuantity()
          Return the quantity of available product
 int hashCode()
          
 void setCategory(Category category)
          Set the category linked to the product
 void setIdProduct(int idProduct)
          Set the product id
 void setPrice(float price)
          Set the price
 void setStockQuantity(int stockQuantity)
          Set the quantity in stock
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, 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

getIdProduct

public int getIdProduct()
Return the product id

Returns:
the product id

setIdProduct

public void setIdProduct(int idProduct)
Set the product id

Parameters:
idProduct - the product id

getPrice

public float getPrice()
Return the price

Returns:
the price

setPrice

public void setPrice(float price)
Set the price

Parameters:
price - the price

getStockQuantity

public int getStockQuantity()
Return the quantity of available product

Returns:
the stock available

setStockQuantity

public void setStockQuantity(int stockQuantity)
Set the quantity in stock

Parameters:
stockQuantity - the quantity

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

getObjectDefinition

public ObjectDefinition getObjectDefinition()
Get the object definition for this kind of product

Returns:
the object definition (contains jsp etc..)

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)

Overrides:
equals in class java.lang.Object


Copyright © 2011 Mairie de Paris. All Rights Reserved.