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

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

@Entity
public class Category
extends java.lang.Object

Category


Field Summary
static java.lang.String ATTRIBUTE_CHILDREN_LIST
           
static java.lang.String ATTRIBUTE_PARENT
           
 
Constructor Summary
Category()
          Constructor
Category(Category category)
          Build a new category from a category object
 
Method Summary
 boolean equals(java.lang.Object obj)
          
 boolean getActive()
          Return the category status
 java.util.List<Category> getChildrenList()
          Return the children list
 int getIdCategory()
          Return category id
 java.lang.String getName()
          Return the category name
 ObjectDefinition getObjectDefinition()
          Return the object definition
 Category getParent()
          return the category parent
 java.util.List<Product> getProductSet()
          Return the product list
 Provider getProvider()
          Return the provider
 int hashCode()
          
 void setActive(boolean status)
          Set the category status
 void setChildrenList(java.util.List<Category> childrenList)
          Set the children list
 void setIdCategory(int idCategory)
          Set the category id
 void setName(java.lang.String name)
          Set the category name
 void setParent(Category parentCategory)
          Set the Category parent
 void setProductSet(java.util.List<Product> productSet)
          Set the product list
 void setProvider(Provider provider)
          Set the provider
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTRIBUTE_CHILDREN_LIST

public static final java.lang.String ATTRIBUTE_CHILDREN_LIST
See Also:
Constant Field Values

ATTRIBUTE_PARENT

public static final java.lang.String ATTRIBUTE_PARENT
See Also:
Constant Field Values
Constructor Detail

Category

public Category()
Constructor


Category

public Category(Category category)
Build a new category from a category object

Parameters:
category - the category
Method Detail

getIdCategory

public int getIdCategory()
Return category id

Returns:
category id

setIdCategory

public void setIdCategory(int idCategory)
Set the category id

Parameters:
idCategory - the category id

getActive

public boolean getActive()
Return the category status

Returns:
the status

setActive

public void setActive(boolean status)
Set the category status

Parameters:
status - the status

getName

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

Returns:
the name

setName

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

Parameters:
name - the category name

getChildrenList

public java.util.List<Category> getChildrenList()
Return the children list

Returns:
the children list

setChildrenList

public void setChildrenList(java.util.List<Category> childrenList)
Set the children list

Parameters:
childrenList - the children list

getProductSet

public java.util.List<Product> getProductSet()
Return the product list

Returns:
the product list

setProductSet

public void setProductSet(java.util.List<Product> productSet)
Set the product list

Parameters:
productSet - the product list

getParent

public Category getParent()
return the category parent

Returns:
the parent

setParent

public void setParent(Category parentCategory)
Set the Category parent

Parameters:
parentCategory - the parent

getProvider

public Provider getProvider()
Return the provider

Returns:
the provider

setProvider

public void setProvider(Provider provider)
Set the provider

Parameters:
provider - the provider

getObjectDefinition

public ObjectDefinition getObjectDefinition()
Return the object definition

Returns:
the object definition

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.