fr.paris.lutece.plugins.form.business
Interface ICategoryDAO

All Known Implementing Classes:
CategoryDAO

public interface ICategoryDAO

Interface IVoteTypeDAO


Method Summary
 void delete(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void insert(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 boolean isAssociateToForm(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          true if there is a form associate to the category
 Category load(int idKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of the category from the table
 java.util.List<Category> select(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all category returns them in a list
 void store(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          update record in the table.
 

Method Detail

insert

void insert(Category category,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Parameters:
category - instance of the Category object to insert
plugin - the plugin

store

void store(Category category,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
update record in the table.

Parameters:
category - instance of the Category object to update
plugin - the plugin

delete

void delete(int nIdCategory,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Parameters:
nIdCategory - The identifier of the category
plugin - the plugin

load

Category load(int idKey,
              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the category from the table

Parameters:
idKey - The identifier of the category
plugin - the plugin
Returns:
The category

select

java.util.List<Category> select(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all category returns them in a list

Parameters:
plugin - the plugin
Returns:
the list of category

isAssociateToForm

boolean isAssociateToForm(int nIdCategory,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
true if there is a form associate to the category

Parameters:
nIdCategory - the key of the category
plugin - the plugin
Returns:
true if there is a form associate to the category


Copyright © 2012 Mairie de Paris. All Rights Reserved.