Interface IFormDAO
-
- All Known Implementing Classes:
FormDAO
public interface IFormDAOIFormDAO Interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intcountNumberOfResponseFormByUser(int nIdForm, java.lang.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 tablejava.util.List<Form>selectFormByPrimaryKeyList(java.util.List<java.lang.Integer> listIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all form Objects for a given list of form identifiersjava.util.List<Form>selectFormsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the form objects and returns them as a listjava.util.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 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
void insert(Form form, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Parameters:
form- instance of the Form object to insertplugin- the Plugin
-
store
void store(Form form, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Parameters:
form- the reference of the Formplugin- the Plugin
-
delete
void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Parameters:
nKey- The identifier of the Form to deleteplugin- the Plugin
-
load
Form load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Parameters:
nKey- The identifier of the formplugin- the Plugin- Returns:
- The instance of the form
-
selectFormsList
java.util.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- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the form objects
-
selectFormsListSorted
java.util.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- 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
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- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the form objects
-
countNumberOfResponseForms
int countNumberOfResponseForms(int nidForm)
count the number of response for a form- Parameters:
nidForm- id of form- Returns:
- the number of the responses for a form
-
countNumberOfResponseFormByUser
int countNumberOfResponseFormByUser(int nIdForm, java.lang.String strGuid)count the number of response by the name of user- Parameters:
nIdForm- id of formstrGuid- the name of user- Returns:
- return the number of response of form of user
-
selectFormByPrimaryKeyList
java.util.List<Form> selectFormByPrimaryKeyList(java.util.List<java.lang.Integer> listIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all form Objects for a given list of form identifiers- Parameters:
listIdForm- the list of form identifiersplugin- the Plugin- Returns:
- The list which contains the data of all the Form objects
-
-