Class MenusDAO

java.lang.Object
fr.paris.lutece.plugins.menus.business.MenusDAO
All Implemented Interfaces:
IMenusDAO

public final class MenusDAO extends Object implements IMenusDAO
This class provides Data Access methods for Menus objects
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(int nMenusId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a record from the table
    void
    insert(Menus menus, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert a new record in the table.
    load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of the menus from the table
    int
    newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Generates a new primary key
    selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the menuss and returns them as a collection
    int
    selectNbMenus(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Returns the menus count
    void
    store(Menus menus, 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 Details

    • MenusDAO

      public MenusDAO()
  • Method Details

    • newPrimaryKey

      public 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

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

      public Menus load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of the menus from the table
      Specified by:
      load in interface IMenusDAO
      Parameters:
      nId - The identifier of the menus
      plugin - The plugin
      Returns:
      the instance of the Menus
    • delete

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

      public void store(Menus menus, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface IMenusDAO
      Parameters:
      menus - The reference of the menus
      plugin - The plugin
    • selectAll

      public Collection<Menus> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the menuss and returns them as a collection
      Specified by:
      selectAll in interface IMenusDAO
      Parameters:
      plugin - The plugin
      Returns:
      The Collection which contains the data of all the menuss
    • selectNbMenus

      public int selectNbMenus(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns the menus count
      Specified by:
      selectNbMenus in interface IMenusDAO
      Parameters:
      plugin - The plugin
      Returns:
      nCount