|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.document.business.category.CategoryHome
public final class CategoryHome
This class provides instances management methods (create, find, ...) for Category objects
Method Summary | |
---|---|
static void |
create(Category category)
Create a new Category |
static Category |
find(int nIdCategory)
Find the data of Category from the table |
static java.util.Collection<Category> |
findAll()
Returns the category list |
static java.util.Collection<Category> |
findByName(java.lang.String strCategoryName)
Find the data of Category from the table |
static int |
findCountIdDocuments(int nIdCategory)
Find the number of documents linked to a category |
static fr.paris.lutece.portal.service.image.ImageResource |
getImageResource(int nCategoryId)
Return the image resource for the specified category id |
static void |
remove(int nIdCategory)
Remove a record from the table |
static void |
update(Category category)
Update the record in the table |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.util.Collection<Category> findAll()
public static void create(Category category)
category
- The new Categorypublic static Category find(int nIdCategory)
nIdCategory
- The id of the category
public static java.util.Collection<Category> findByName(java.lang.String strCategoryName)
strCategoryName
- The id of the category
public static void remove(int nIdCategory)
nIdCategory
- The identifier of the object Categorypublic static void update(Category category)
category
- The instance of the Category to updatepublic static int findCountIdDocuments(int nIdCategory)
nIdCategory
- The category id
public static fr.paris.lutece.portal.service.image.ImageResource getImageResource(int nCategoryId)
nCategoryId
- The identifier of Category object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |