Class MenusHome

java.lang.Object
fr.paris.lutece.plugins.menus.business.MenusHome

public final class MenusHome extends Object
This class provides instances management methods (create, find, ...) for Menus objects
  • Method Summary

    Modifier and Type
    Method
    Description
    static Menus
    create(Menus menus)
    Create an instance of the menus class
    static Menus
    create(Menus menus, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Create an instance of the menus class
    Load the data of all the menus objects and returns them in form of a collection
    findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the menus objects and returns them in form of a collection
    static Menus
    findByPrimaryKey(int nKey)
    Returns an instance of a menus whose identifier is specified in parameter
    static Menus
    findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Returns an instance of a menus whose identifier is specified in parameter
    static int
    Search the number of menus
    static int
    getNbMenus(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Search the number of menus
    static void
    remove(int nMenusId)
    Remove the menus whose identifier is specified in parameter
    static void
    remove(int nMenusId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Remove the menus whose identifier is specified in parameter
    static Menus
    update(Menus menus)
    Update of the menus which is specified in parameter
    static Menus
    update(Menus menus, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Update of the menus which is specified in parameter

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • create

      public static Menus create(Menus menus, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Create an instance of the menus class
      Parameters:
      menus - The instance of the Menus which contains the informations to store
      plugin - the Plugin
      Returns:
      The instance of menus which has been created with its primary key.
    • create

      public static Menus create(Menus menus)
      Create an instance of the menus class
      Parameters:
      menus - The instance of the Menus which contains the informations to store
      Returns:
      The instance of menus which has been created with its primary key.
    • update

      public static Menus update(Menus menus, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update of the menus which is specified in parameter
      Parameters:
      menus - The instance of the Menus which contains the data to store
      plugin - the Plugin
      Returns:
      The instance of the menus which has been updated
    • update

      public static Menus update(Menus menus)
      Update of the menus which is specified in parameter
      Parameters:
      menus - The instance of the Menus which contains the data to store
      Returns:
      The instance of the menus which has been updated
    • remove

      public static void remove(int nMenusId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove the menus whose identifier is specified in parameter
      Parameters:
      nMenusId - The menus Id
      plugin - the Plugin
    • remove

      public static void remove(int nMenusId)
      Remove the menus whose identifier is specified in parameter
      Parameters:
      nMenusId - The menus Id
    • findByPrimaryKey

      public static Menus findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns an instance of a menus whose identifier is specified in parameter
      Parameters:
      nKey - The menus primary key
      plugin - the Plugin
      Returns:
      an instance of Menus
    • findByPrimaryKey

      public static Menus findByPrimaryKey(int nKey)
      Returns an instance of a menus whose identifier is specified in parameter
      Parameters:
      nKey - The menus primary key
      Returns:
      an instance of Menus
    • findAll

      public static Collection<Menus> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the menus objects and returns them in form of a collection
      Parameters:
      plugin - the Plugin
      Returns:
      the collection which contains the data of all the menus objects
    • findAll

      public static Collection<Menus> findAll()
      Load the data of all the menus objects and returns them in form of a collection
      Returns:
      the collection which contains the data of all the menus objects
    • getNbMenus

      public static int getNbMenus(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Search the number of menus
      Parameters:
      plugin - the Plugin
      Returns:
      int the number of menus
    • getNbMenus

      public static int getNbMenus()
      Search the number of menus
      Returns:
      int the number of menus