Interface ICategoryDAO

  • All Known Implementing Classes:
    CategoryDAO

    public interface ICategoryDAO
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void delete​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Category findByCode​(java.lang.String strCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      void 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
      java.util.List<Category> selectCategoriesList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      java.util.List<Category> selectDefaultCategoriesList​(fr.paris.lutece.portal.service.plugin.Plugin _plugin)
      void store​(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the 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 the record in the table
        Parameters:
        category - the reference of the Category
        plugin - the Plugin
      • delete

        void delete​(int nKey,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table
        Parameters:
        nKey - The 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

        java.util.List<Category> selectCategoriesList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      • findByCode

        Category findByCode​(java.lang.String strCode,
                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
      • selectDefaultCategoriesList

        java.util.List<Category> selectDefaultCategoriesList​(fr.paris.lutece.portal.service.plugin.Plugin _plugin)