Class MenusHome
- java.lang.Object
-
- fr.paris.lutece.plugins.menus.business.MenusHome
-
public final class MenusHome extends java.lang.ObjectThis class provides instances management methods (create, find, ...) for Menus objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Menuscreate(Menus menus)Create an instance of the menus classstatic Menuscreate(Menus menus, fr.paris.lutece.portal.service.plugin.Plugin plugin)Create an instance of the menus classstatic java.util.Collection<Menus>findAll()Load the data of all the menus objects and returns them in form of a collectionstatic java.util.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 intgetNbMenus()Search 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(Menus menus)Update of the menus which is specified in parameterstatic Menusupdate(Menus menus, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update of the menus which is specified in parameter
-
-
-
Method Detail
-
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 storeplugin- 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 storeplugin- 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 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
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 keyplugin- 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 java.util.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 java.util.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
-
-