All Known Implementing Classes:
CategoryDAO

public interface ICategoryDAO
Category DAO Interface
Author:
Laurent Payen
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a record from the table
    findAllCategories(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Find all the categories
    findByLabel(String strLabel, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Find a category by its category label
    void
    insert(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert a new record in the table.
    select(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from the table
    void
    update(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Update the record in the table
  • Method Details

    • 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
    • update

      void update(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 - identifier of the Category to delete
      plugin - the Plugin
    • select

      Category select(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Parameters:
      nIdCategory - The identifier of the Category
      plugin - the Plugin
      Returns:
      The instance of the Category
    • findAllCategories

      List<Category> findAllCategories(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find all the categories
      Parameters:
      plugin - the plugin
      Returns:
      a list of all the categories
    • findByLabel

      Category findByLabel(String strLabel, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find a category by its category label
      Parameters:
      strLabel - the label
      plugin - the plugin
      Returns:
      an instance of the category