|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.calendar.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,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table |
void |
deleteLinkCategoryEvent(int nIdCategory,
int nIdEvent,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a link between category and event |
void |
deleteLinksCategory(int nIdCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete all links for a category |
void |
insert(Category category,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new Category |
Category |
load(int nIdCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of Category from the table |
fr.paris.lutece.portal.service.image.ImageResource |
loadImageResource(int nCategoryId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the image resource corresponding to the category id |
Collection<Category> |
selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Category |
int[] |
selectAllIdEvent(int nIdCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select a list of Id Events for a specified category |
Collection<Category> |
selectByEvent(int nIdEvent,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of Category for an event from the table |
Collection<Category> |
selectByName(String strCategoryName,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of Category from the table |
int |
selectCountIdEvents(int nIdCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the number of Events linked to a category |
void |
store(Category category,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
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 Collection<Category> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAll in interface ICategoryDAOplugin - Plugin
public void insert(Category category,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface ICategoryDAOcategory - The object category to insertplugin - Plugin
public Category load(int nIdCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface ICategoryDAOnIdCategory - The identifier of the categoryplugin - Plugin
public Collection<Category> selectByEvent(int nIdEvent,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectByEvent in interface ICategoryDAOnIdEvent - The identifier of the eventplugin - Plugin
public void delete(int nIdCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface ICategoryDAOnIdCategory - The identifier of the object Categoryplugin - Plugin
public void store(Category category,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface ICategoryDAOcategory - The instance of the Category to updateplugin - Plugin
public Collection<Category> selectByName(String strCategoryName,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectByName in interface ICategoryDAOstrCategoryName - The name of the categoryplugin - Plugin
public void deleteLinkCategoryEvent(int nIdCategory,
int nIdEvent,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdCategory - The identifier of the object CategorynIdEvent - The id of documentplugin - Plugin
public int[] selectAllIdEvent(int nIdCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdCategory - The category nameplugin - Plugin
public void deleteLinksCategory(int nIdCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdCategory - The identifier of the object Categoryplugin - Plugin
public int selectCountIdEvents(int nIdCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectCountIdEvents in interface ICategoryDAOnIdCategory - The category nameplugin - Plugin
public fr.paris.lutece.portal.service.image.ImageResource loadImageResource(int nCategoryId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadImageResource in interface ICategoryDAOnCategoryId - The identifier of Category objectplugin - Plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||