Class CategoryHome
java.lang.Object
fr.paris.lutece.plugins.appointment.business.category.CategoryHome
This class provides instances management methods for Category objects
- Author:
- Laurent Payen
-
Method Summary
Modifier and TypeMethodDescriptionstatic CategoryCreate an instance of the Category classstatic voiddelete(int nKey) Delete the Category whose identifier is specified in parameterReturns all the Categories parameterstatic CategoryfindByLabel(String strLabel) Find a category by its Labelstatic CategoryfindByPrimaryKey(int nKey) Returns an instance of the Category whose identifier is specified in parameterstatic CategoryUpdate of the Category which is specified in parameter
-
Method Details
-
create
Create an instance of the Category class- Parameters:
category- The instance of the Category which contains the informations to store- Returns:
- The instance of Category which has been created with its primary key.
-
update
Update of the Category which is specified in parameter- Parameters:
category- The instance of the Category which contains the data to store- Returns:
- The instance of the Category which has been updated
-
delete
public static void delete(int nKey) Delete the Category whose identifier is specified in parameter- Parameters:
nKey- The Category Id
-
findByPrimaryKey
Returns an instance of the Category whose identifier is specified in parameter- Parameters:
nKey- The Category primary key- Returns:
- an instance of the Category
-
findAllCategories
Returns all the Categories parameter- Returns:
- a list of all the categories
-
findByLabel
Find a category by its Label- Parameters:
strLabel- the label- Returns:
- an instance of the category
-