|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.stock.business.Product
@Entity public class Product
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 |
|---|
public Product()
public Product(Product product)
product - the product| Method Detail |
|---|
public int getIdProduct()
public void setIdProduct(int idProduct)
idProduct - the product idpublic float getPrice()
public void setPrice(float price)
price - the pricepublic int getStockQuantity()
public void setStockQuantity(int stockQuantity)
stockQuantity - the quantitypublic Category getCategory()
public void setCategory(Category category)
category - the categorypublic ObjectDefinition getObjectDefinition()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||