|
||||||||||
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.CategoryDAO
public final class CategoryDAO
This class provides Data Access methods for Category objects
Constructor Summary | |
---|---|
CategoryDAO()
|
Method Summary | |
---|---|
void |
delete(int nIdCategory)
Delete a record from the table |
void |
deleteLinkCategoryDocument(int nIdCategory,
int nIdDocument)
Delete a link between category and document |
void |
deleteLinksCategory(int nIdCategory)
Delete all links for a category |
void |
insert(Category category)
Insert a new Category |
Category |
load(int nIdCategory)
Load the data of Category from the table |
fr.paris.lutece.portal.service.image.ImageResource |
loadImageResource(int nCategoryId)
Return the image resource corresponding to the category id |
java.util.Collection<Category> |
selectAll()
Load the list of Category |
int[] |
selectAllIdDocument(int nIdCategory)
Select a list of Id Documents for a specified category |
java.util.Collection<Category> |
selectByName(java.lang.String strCategoryName)
Load the data of Category from the table |
int |
selectCountIdDocuments(int nIdCategory)
Return the number of documents linked to a category |
void |
store(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 |
Constructor Detail |
---|
public CategoryDAO()
Method Detail |
---|
public java.util.Collection<Category> selectAll()
selectAll
in interface ICategoryDAO
public void insert(Category category)
insert
in interface ICategoryDAO
category
- The object category to insertpublic Category load(int nIdCategory)
load
in interface ICategoryDAO
nIdCategory
- The identifier of the category
public void delete(int nIdCategory)
delete
in interface ICategoryDAO
nIdCategory
- The identifier of the object Categorypublic void store(Category category)
store
in interface ICategoryDAO
category
- The instance of the Category to updatepublic java.util.Collection<Category> selectByName(java.lang.String strCategoryName)
selectByName
in interface ICategoryDAO
strCategoryName
- The name of the category
public void deleteLinkCategoryDocument(int nIdCategory, int nIdDocument)
nIdCategory
- The identifier of the object CategorynIdDocument
- The id of documentpublic int[] selectAllIdDocument(int nIdCategory)
nIdCategory
- The category name
public void deleteLinksCategory(int nIdCategory)
nIdCategory
- The identifier of the object Categorypublic int selectCountIdDocuments(int nIdCategory)
selectCountIdDocuments
in interface ICategoryDAO
nIdCategory
- The category name
public fr.paris.lutece.portal.service.image.ImageResource loadImageResource(int nCategoryId)
loadImageResource
in interface ICategoryDAO
nCategoryId
- The identifier of Category object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |