public final class CategoryHome extends Object
Modifier and Type | Method and Description |
---|---|
static Category |
create(Category category)
Create an instance of the Category class
|
static void |
delete(int nKey)
Delete the Category whose identifier is specified in parameter
|
static List<Category> |
findAllCategories()
Returns all the Categories parameter
|
static Category |
findByLabel(String strLabel)
Find a category by its Label
|
static Category |
findByPrimaryKey(int nKey)
Returns an instance of the Category whose identifier is specified in parameter
|
static Category |
update(Category category)
Update of the Category which is specified in parameter
|
public static Category create(Category category)
category
- The instance of the Category which contains the informations to storepublic static Category update(Category category)
category
- The instance of the Category which contains the data to storepublic static void delete(int nKey)
nKey
- The Category Idpublic static Category findByPrimaryKey(int nKey)
nKey
- The Category primary keypublic static List<Category> findAllCategories()
Copyright © 2020 City of Paris. All rights reserved.