Class MyLutecePortletDAO
java.lang.Object
fr.paris.lutece.plugins.mylutece.business.portlet.MyLutecePortletDAO
- All Implemented Interfaces:
IMyLutecePortletDAO,fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
this class provides Data Access methods for HtmlPortlet objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nPortletId) Delete a record from the tablevoidinsert(fr.paris.lutece.portal.business.portlet.Portlet portlet) Insert a new record in the table.fr.paris.lutece.portal.business.portlet.Portletload(int nPortletId) loads the data of portlet from the tablevoidstore(fr.paris.lutece.portal.business.portlet.Portlet portlet) Update the record in the table
-
Constructor Details
-
MyLutecePortletDAO
public MyLutecePortletDAO()
-
-
Method Details
-
insert
public void insert(fr.paris.lutece.portal.business.portlet.Portlet portlet) Insert a new record in the table.- Specified by:
insertin interfaceIMyLutecePortletDAO- Specified by:
insertin interfacefr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO- Parameters:
portlet- the object to be inserted
-
delete
public void delete(int nPortletId) Delete a record from the table- Specified by:
deletein interfaceIMyLutecePortletDAO- Specified by:
deletein interfacefr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO- Parameters:
nPortletId- the Html Portlet identifier
-
load
public fr.paris.lutece.portal.business.portlet.Portlet load(int nPortletId) loads the data of portlet from the table- Specified by:
loadin interfaceIMyLutecePortletDAO- Specified by:
loadin interfacefr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO- Parameters:
nPortletId- The Html Portlet identifier- Returns:
- the Html Portlet object
-
store
public void store(fr.paris.lutece.portal.business.portlet.Portlet portlet) Update the record in the table- Specified by:
storein interfaceIMyLutecePortletDAO- Specified by:
storein interfacefr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO- Parameters:
portlet- the instance of Portlet class to be updated
-