Class FormPortletDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.form.business.portlet.FormPortletDAO
-
- All Implemented Interfaces:
IFormPortletDAO,fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
public final class FormPortletDAO extends java.lang.Object implements IFormPortletDAO
This class provides Data Access methods for ArticlesListPortlet objects
-
-
Constructor Summary
Constructors Constructor Description FormPortletDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nPortletId)Deletes records for a portlet identifier in the table form_portletvoidinsert(fr.paris.lutece.portal.business.portlet.Portlet portlet)Insert a new record in the table form_portletfr.paris.lutece.portal.business.portlet.Portletload(int nPortletId)Loads the data of Form Portlet whose identifier is specified in parameterintselectCountPortletByIdForm(int nIdForm)return number of form portlet who are associate to the id formvoidstore(fr.paris.lutece.portal.business.portlet.Portlet portlet)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(fr.paris.lutece.portal.business.portlet.Portlet portlet)
Insert a new record in the table form_portlet- Specified by:
insertin interfaceIFormPortletDAO- Specified by:
insertin interfacefr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO- Parameters:
portlet- the instance of the Portlet object to insert
-
delete
public void delete(int nPortletId)
Deletes records for a portlet identifier in the table form_portlet- Specified by:
deletein interfaceIFormPortletDAO- Specified by:
deletein interfacefr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO- Parameters:
nPortletId- the portlet identifier
-
load
public fr.paris.lutece.portal.business.portlet.Portlet load(int nPortletId)
Loads the data of Form Portlet whose identifier is specified in parameter- Specified by:
loadin interfaceIFormPortletDAO- Specified by:
loadin interfacefr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO- Parameters:
nPortletId- The Portlet identifier- Returns:
- theDocumentListPortlet object
-
selectCountPortletByIdForm
public int selectCountPortletByIdForm(int nIdForm)
return number of form portlet who are associate to the id form- Specified by:
selectCountPortletByIdFormin interfaceIFormPortletDAO- Parameters:
nIdForm- the id of the form- Returns:
- number of form portlet who are associate to the id form
-
store
public void store(fr.paris.lutece.portal.business.portlet.Portlet portlet)
Update the record in the table- Specified by:
storein interfaceIFormPortletDAO- Specified by:
storein interfacefr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO- Parameters:
portlet- A portlet
-
-