Class CustomMenuItemDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.menus.business.CustomMenuItemDAO
-
- All Implemented Interfaces:
ICustomMenuItemDAO
public final class CustomMenuItemDAO extends java.lang.Object implements ICustomMenuItemDAO
This class provides Data Access methods for CustomMenuItem objects
-
-
Constructor Summary
Constructors Constructor Description CustomMenuItemDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoiddeleteByMenuId(int nMenuId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete all items of a menuvoiddeleteSubMenuItemBySubMenuId(int nMenuSourceId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete all subMenu item from all menuvoidinsert(CustomMenuItem customMenuItem, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.CustomMenuItemload(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablejava.util.List<CustomMenuItem>selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the customMenuItem objects and returns them as a collectionjava.util.List<java.lang.Integer>selectAllIdsByMenuId(int nMenuId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the customMenuItem objects for a specific menu and returns their ids as a listjava.util.List<CustomMenuItem>selectByMenuId(int nMenuId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the customMenuItem objects for a specific menu and returns them as a listvoidstore(CustomMenuItem customMenuItem, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(CustomMenuItem customMenuItem, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceICustomMenuItemDAO- Parameters:
customMenuItem- instance of the CustomMenuItem object to insertplugin- the Plugin
-
load
public CustomMenuItem load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadin interfaceICustomMenuItemDAO- Parameters:
nKey- The identifier of the customMenuItemplugin- the Plugin- Returns:
- The instance of the customMenuItem
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Specified by:
deletein interfaceICustomMenuItemDAO- Parameters:
nKey- The identifier of the CustomMenuItem to deleteplugin- the Plugin
-
deleteByMenuId
public void deleteByMenuId(int nMenuId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete all items of a menu- Specified by:
deleteByMenuIdin interfaceICustomMenuItemDAO- Parameters:
nMenuId- The identifier of the menuplugin- the Plugin
-
deleteSubMenuItemBySubMenuId
public void deleteSubMenuItemBySubMenuId(int nMenuSourceId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Description copied from interface:ICustomMenuItemDAODelete all subMenu item from all menu- Specified by:
deleteSubMenuItemBySubMenuIdin interfaceICustomMenuItemDAOplugin- the Plugin
-
store
public void store(CustomMenuItem customMenuItem, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Specified by:
storein interfaceICustomMenuItemDAO- Parameters:
customMenuItem- the reference of the CustomMenuItemplugin- the Plugin
-
selectAll
public java.util.List<CustomMenuItem> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the customMenuItem objects and returns them as a collection- Specified by:
selectAllin interfaceICustomMenuItemDAO- Parameters:
plugin- the Plugin- Returns:
- The collection which contains the data of all the customMenuItem objects
-
selectByMenuId
public java.util.List<CustomMenuItem> selectByMenuId(int nMenuId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the customMenuItem objects for a specific menu and returns them as a list- Specified by:
selectByMenuIdin interfaceICustomMenuItemDAO- Parameters:
nMenuId- The identifier of the menuplugin- the Plugin- Returns:
- The list which contains the data of all the customMenuItem objects for the menu
-
selectAllIdsByMenuId
public java.util.List<java.lang.Integer> selectAllIdsByMenuId(int nMenuId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Description copied from interface:ICustomMenuItemDAOLoad the data of all the customMenuItem objects for a specific menu and returns their ids as a list- Specified by:
selectAllIdsByMenuIdin interfaceICustomMenuItemDAO- Parameters:
nMenuId- The identifier of the menu- Returns:
- The list which contains the id of all the customMenuItem objects for the menu
-
-