Class FormDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.forms.business.FormDAO
-
-
Constructor Summary
Constructors Constructor Description FormDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcountNumberOfResponseFormByUser(int nIdForm, String strGuid)count the number of response by the name of userintcountNumberOfResponseForms(int nIdForm)count the number of response for a formvoiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoidinsert(Form form, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.Formload(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableList<Form>selectFormByPrimaryKeyList(List<Integer> listIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all form Objects for a given list of form identifiersList<Form>selectFormsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the form objects and returns them as a listList<Form>selectFormsListSorted(fr.paris.lutece.portal.service.plugin.Plugin plugin, FormItemSortConfig sortConfig)Load the data of all the form objects and returns them as a sorted listfr.paris.lutece.util.ReferenceListselectFormsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the form objects and returns them as a referenceListvoidstore(Form form, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(Form form, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
-
load
public Form load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table
-
store
public void store(Form form, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
-
selectFormsList
public List<Form> selectFormsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the form objects and returns them as a list- Specified by:
selectFormsListin interfaceIFormDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the form objects
-
selectFormsListSorted
public List<Form> selectFormsListSorted(fr.paris.lutece.portal.service.plugin.Plugin plugin, FormItemSortConfig sortConfig)
Load the data of all the form objects and returns them as a sorted list- Specified by:
selectFormsListSortedin interfaceIFormDAO- Parameters:
plugin- the PluginsortConfig- the sort configuration (column to sort, order type)- Returns:
- The list which contains the data of all the form objects
-
selectFormsReferenceList
public fr.paris.lutece.util.ReferenceList selectFormsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the form objects and returns them as a referenceList- Specified by:
selectFormsReferenceListin interfaceIFormDAO- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the form objects
-
countNumberOfResponseForms
public int countNumberOfResponseForms(int nIdForm)
count the number of response for a form- Specified by:
countNumberOfResponseFormsin interfaceIFormDAO- Parameters:
nIdForm- id of form- Returns:
- the number of the responses for a form
-
countNumberOfResponseFormByUser
public int countNumberOfResponseFormByUser(int nIdForm, String strGuid)count the number of response by the name of user- Specified by:
countNumberOfResponseFormByUserin interfaceIFormDAO- Parameters:
nIdForm- id of formstrGuid- the name of user- Returns:
- return the number of response of form of user
-
selectFormByPrimaryKeyList
public List<Form> selectFormByPrimaryKeyList(List<Integer> listIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IFormDAOLoad the data of all form Objects for a given list of form identifiers- Specified by:
selectFormByPrimaryKeyListin interfaceIFormDAO- Parameters:
listIdForm- the list of form identifiersplugin- the Plugin- Returns:
- The list which contains the data of all the Form objects
-
-