Class MenusDAO
java.lang.Object
fr.paris.lutece.plugins.menus.business.MenusDAO
- All Implemented Interfaces:
IMenusDAO
This class provides Data Access methods for Menus objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nMenusId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablevoidInsert a new record in the table.load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of the menus from the tableintnewPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin) Generates a new primary keyselectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the menuss and returns them as a collectionintselectNbMenus(fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns the menus countvoidUpdate the record in the table
-
Constructor Details
-
MenusDAO
public MenusDAO()
-
-
Method Details
-
newPrimaryKey
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin) Generates a new primary key- Parameters:
plugin- The Plugin- Returns:
- The new primary key
-
load
Load the data of the menus from the table -
delete
public void delete(int nMenusId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table -
selectAll
Load the data of all the menuss and returns them as a collection -
selectNbMenus
public int selectNbMenus(fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns the menus count- Specified by:
selectNbMenusin interfaceIMenusDAO- Parameters:
plugin- The plugin- Returns:
- nCount
-