Class MenusHome
java.lang.Object
fr.paris.lutece.plugins.menus.business.MenusHome
This class provides instances management methods (create, find, ...) for
Menus objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic MenusCreate an instance of the menus classstatic MenusCreate an instance of the menus classstatic Collection<Menus>findAll()Load the data of all the menus objects and returns them in form of a collectionstatic 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 collectionstatic MenusfindByPrimaryKey(int nKey) Returns an instance of a menus whose identifier is specified in parameterstatic MenusfindByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns an instance of a menus whose identifier is specified in parameterstatic intSearch the number of menusstatic intgetNbMenus(fr.paris.lutece.portal.service.plugin.Plugin plugin) Search the number of menusstatic voidremove(int nMenusId) Remove the menus whose identifier is specified in parameterstatic voidremove(int nMenusId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove the menus whose identifier is specified in parameterstatic MenusUpdate of the menus which is specified in parameterstatic MenusUpdate of the menus which is specified in parameter
-
Method Details
-
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 Idplugin- the Plugin
-
remove
public static void remove(int nMenusId) Remove the menus whose identifier is specified in parameter- Parameters:
nMenusId- The menus Id
-
findByPrimaryKey
Returns an instance of a menus whose identifier is specified in parameter- Parameters:
nKey- The menus primary keyplugin- the Plugin- Returns:
- an instance of Menus
-
findByPrimaryKey
Returns an instance of a menus whose identifier is specified in parameter- Parameters:
nKey- The menus primary key- Returns:
- an instance of Menus
-
findAll
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
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