Class MenusDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.menus.business.MenusDAO
-
-
Constructor Summary
Constructors Constructor Description MenusDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nMenusId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoidinsert(Menus menus, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.Menusload(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 keyjava.util.Collection<Menus>selectAll(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 countvoidstore(Menus menus, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
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
-
insert
public void insert(Menus menus, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
-
load
public Menus load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
-
store
public void store(Menus menus, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
-
selectAll
public java.util.Collection<Menus> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
-
-