Class CustomMenuItemDAO
java.lang.Object
fr.paris.lutece.plugins.menus.business.CustomMenuItemDAO
- All Implemented Interfaces:
ICustomMenuItemDAO
@ApplicationScoped
public final class CustomMenuItemDAO
extends Object
implements ICustomMenuItemDAO
This class provides Data Access methods for CustomMenuItem objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(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.load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableselectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the customMenuItem objects and returns them as a collectionselectAllIdsByMenuId(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 listselectByMenuId(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
-
Constructor Details
-
CustomMenuItemDAO
public CustomMenuItemDAO()
-
-
Method Details
-
load
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
-
selectAll
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 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 List<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