|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.crm.business.demand.category.CategoryHome
public final class CategoryHome
This class provides instances management methods (create, find, ...) for Category objects
| Method Summary | |
|---|---|
static int |
create(Category category)
Create an instance of the category class |
static Category |
findByPrimaryKey(int nKey)
Returns an instance of a category whose identifier is specified in parameter |
static Category |
findFirstCategory()
Find the first category |
static fr.paris.lutece.util.ReferenceList |
getCategories()
Load the data of all the category objects and returns them in form of a ReferenceList |
static Collection<Category> |
getCategoriesList()
Load the data of all the category objects and returns them in form of a collection |
static int |
newPrimaryKey()
Generates a new primary key |
static void |
remove(int nCategoryId)
Remove the category whose identifier is specified in parameter |
static Category |
update(Category category)
Update of the category which is specified in parameter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static int newPrimaryKey()
public static int create(Category category)
category - The instance of the Category which contains the informations to store
public static Category update(Category category)
category - The instance of the Category which contains the data to store
public static void remove(int nCategoryId)
nCategoryId - The category Idpublic static Category findByPrimaryKey(int nKey)
nKey - The category primary key
public static Collection<Category> getCategoriesList()
public static fr.paris.lutece.util.ReferenceList getCategories()
public static Category findFirstCategory()
Category
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||