fr.paris.lutece.plugins.crm.business.demand.category
Interface ICategoryDAO

All Known Implementing Classes:
CategoryDAO

public interface ICategoryDAO

ICategoryDAO Interface


Method Summary
 void delete(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 int insert(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 Category load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data from the table
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Generates a new primary key
 Collection<Category> selectCategoriesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the category objects and returns them as a collection
 Category selectFirstCategory(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Select the first category
 void store(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 

Method Detail

newPrimaryKey

int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key

Parameters:
plugin - The Plugin
Returns:
The new primary key

insert

int 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
Returns:
the new primary key

store

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

Parameters:
category - the reference of the Category
plugin - the Plugin

delete

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

Parameters:
nIdCategory - int identifier of the Category to delete
plugin - the Plugin

load

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

Parameters:
nKey - The identifier of the category
plugin - the Plugin
Returns:
The instance of the category

selectCategoriesList

Collection<Category> selectCategoriesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the category objects and returns them as a collection

Parameters:
plugin - the Plugin
Returns:
The collection which contains the data of all the category objects

selectFirstCategory

Category selectFirstCategory(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select the first category

Parameters:
plugin - Plugin
Returns:
a {@link Category


Copyright © 2013 Mairie de Paris. All Rights Reserved.