Class CustomMenuDAO

  • All Implemented Interfaces:
    ICustomMenuDAO

    public final class CustomMenuDAO
    extends java.lang.Object
    implements ICustomMenuDAO
    This class provides Data Access methods for CustomMenu objects
    • Constructor Summary

      Constructors 
      Constructor Description
      CustomMenuDAO()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer countBookmark​(fr.paris.lutece.portal.service.plugin.Plugin plugin, CustomMenu customMenu)
      Return if bookmark is unique or not
      void delete​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void insert​(CustomMenu customMenu, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      CustomMenu load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.List<CustomMenu> selectAll​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the customMenu objects and returns them as a collection
      java.util.List<java.lang.Integer> selectIdMenusList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the customMenu idss and returns them as a collection
      java.util.List<CustomMenu> selectMenusListByFilterCriteria​(fr.paris.lutece.portal.service.plugin.Plugin plugin, java.lang.String strFilterCriteria)
      Load the data of all the customMenu according to filter Criteria and returns them as a collection
      java.util.List<CustomMenu> selectMenusListByIds​(fr.paris.lutece.portal.service.plugin.Plugin plugin, java.util.List<java.lang.Integer> listIds)
      Load the data of all the customMenu according to a list of customMenu Ids and returns them as a collection
      void store​(CustomMenu customMenu, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CustomMenuDAO

        public CustomMenuDAO()
    • Method Detail

      • insert

        public void insert​(CustomMenu customMenu,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table.
        Specified by:
        insert in interface ICustomMenuDAO
        Parameters:
        customMenu - instance of the CustomMenu object to insert
        plugin - the Plugin
      • load

        public CustomMenu load​(int nKey,
                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Specified by:
        load in interface ICustomMenuDAO
        Parameters:
        nKey - The identifier of the customMenu
        plugin - the Plugin
        Returns:
        The instance of the customMenu
      • delete

        public void delete​(int nKey,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table
        Specified by:
        delete in interface ICustomMenuDAO
        Parameters:
        nKey - The identifier of the CustomMenu to delete
        plugin - the Plugin
      • store

        public void store​(CustomMenu customMenu,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Specified by:
        store in interface ICustomMenuDAO
        Parameters:
        customMenu - the reference of the CustomMenu
        plugin - the Plugin
      • selectAll

        public java.util.List<CustomMenu> selectAll​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the customMenu objects and returns them as a collection
        Specified by:
        selectAll in interface ICustomMenuDAO
        Parameters:
        plugin - the Plugin
        Returns:
        The collection which contains the data of all the customMenu objects
      • selectMenusListByIds

        public java.util.List<CustomMenu> selectMenusListByIds​(fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                                               java.util.List<java.lang.Integer> listIds)
        Load the data of all the customMenu according to a list of customMenu Ids and returns them as a collection
        Specified by:
        selectMenusListByIds in interface ICustomMenuDAO
        listIds - the Ids list
        Returns:
        The collection which contains the data of all the customMenu objects
      • selectIdMenusList

        public java.util.List<java.lang.Integer> selectIdMenusList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the customMenu idss and returns them as a collection
        Specified by:
        selectIdMenusList in interface ICustomMenuDAO
        Returns:
        The collection which contains the data of all the customMenu objects
      • selectMenusListByFilterCriteria

        public java.util.List<CustomMenu> selectMenusListByFilterCriteria​(fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                                                          java.lang.String strFilterCriteria)
        Description copied from interface: ICustomMenuDAO
        Load the data of all the customMenu according to filter Criteria and returns them as a collection
        Specified by:
        selectMenusListByFilterCriteria in interface ICustomMenuDAO
        strFilterCriteria - the filter Criteria
        Returns:
        The collection which contains the data of all the customMenu objects
      • countBookmark

        public java.lang.Integer countBookmark​(fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                               CustomMenu customMenu)
        Description copied from interface: ICustomMenuDAO
        Return if bookmark is unique or not
        Specified by:
        countBookmark in interface ICustomMenuDAO
        Parameters:
        plugin - the Plugin
        customMenu - instance of the CustomMenu object to insert
        Returns:
        True if bookmark is unique or false else.