Class FormDisplayDAO
java.lang.Object
fr.paris.lutece.plugins.forms.business.FormDisplayDAO
- All Implemented Interfaces:
IFormDisplayDAO
This class provides Data Access methods for Form objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablevoidinsert(FormDisplay formDisplay, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableselectFormdisplayByFormStepAndComposite(int nIdForm, int nIdStep, int nIdComposite, fr.paris.lutece.portal.service.plugin.Plugin plugin) Select the FormDisplay associated to the given parameterselectFormDisplayList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the FormDisplay objects and returns them as a listselectFormDisplayListByForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the FormDisplay for a form and returns them as a listselectFormDisplayListByParent(int nIdStep, int nIdParent, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the FormDisplay objects by parent for a form step and returns them as a listselectFormDisplayListByParentOrderByQuestionExportDisplayOrder(int nIdStep, int nIdParent, fr.paris.lutece.portal.service.plugin.Plugin plugin) fr.paris.lutece.util.ReferenceListselectGroupDisplayReferenceListByStep(int nIdStep, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the FormDisplay objects of type "Group" linked to a given FormStep and returns them as a referenceListvoidstore(FormDisplay formDisplay, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the record in the table
-
Constructor Details
-
FormDisplayDAO
public FormDisplayDAO()
-
-
Method Details
-
insert
Insert a new record in the table.- Specified by:
insertin interfaceIFormDisplayDAO- Parameters:
formDisplay- instance of the FormDisplay object to insertplugin- the Plugin
-
load
Load the data from the table- Specified by:
loadin interfaceIFormDisplayDAO- Parameters:
nKey- The identifier of the FormDisplayplugin- the Plugin- Returns:
- The instance of the FormDisplay
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Specified by:
deletein interfaceIFormDisplayDAO- Parameters:
nKey- The identifier of the FormDisplay to deleteplugin- the Plugin
-
store
Update the record in the table- Specified by:
storein interfaceIFormDisplayDAO- Parameters:
formDisplay- the reference of the FormDisplayplugin- the Plugin
-
selectFormDisplayList
Load the data of all the FormDisplay objects and returns them as a list- Specified by:
selectFormDisplayListin interfaceIFormDisplayDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the FormDisplay objects
-
selectFormDisplayListByParent
public List<FormDisplay> selectFormDisplayListByParent(int nIdStep, int nIdParent, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the FormDisplay objects by parent for a form step and returns them as a list- Specified by:
selectFormDisplayListByParentin interfaceIFormDisplayDAO- Parameters:
nIdStep- the step idnIdParent- the parent idplugin- the plugin to use- Returns:
- The list which contains the data of all the FormDisplay objects
-
selectFormDisplayListByParentOrderByQuestionExportDisplayOrder
public List<FormDisplay> selectFormDisplayListByParentOrderByQuestionExportDisplayOrder(int nIdStep, int nIdParent, fr.paris.lutece.portal.service.plugin.Plugin plugin) - Specified by:
selectFormDisplayListByParentOrderByQuestionExportDisplayOrderin interfaceIFormDisplayDAOnIdParent- TODO- Returns:
- The list which contains the data of all the FormDisplay objects ordered by export_display_order column from forms_question
-
selectGroupDisplayReferenceListByStep
public fr.paris.lutece.util.ReferenceList selectGroupDisplayReferenceListByStep(int nIdStep, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:IFormDisplayDAOLoad the data of all the FormDisplay objects of type "Group" linked to a given FormStep and returns them as a referenceList- Specified by:
selectGroupDisplayReferenceListByStepin interfaceIFormDisplayDAO- Parameters:
nIdStep- the step identifierplugin- the plugin to use- Returns:
- the referenceList which contains the data of all the Display objects of group type
-
selectFormdisplayByFormStepAndComposite
public FormDisplay selectFormdisplayByFormStepAndComposite(int nIdForm, int nIdStep, int nIdComposite, fr.paris.lutece.portal.service.plugin.Plugin plugin) Select the FormDisplay associated to the given parameter- Specified by:
selectFormdisplayByFormStepAndCompositein interfaceIFormDisplayDAO- Parameters:
nIdForm- The identifier of the Form to matchnIdStep- The identifier of the Step to matchnIdComposite- The identifier of the Composite to matchplugin- The plugin to use to execute the query- Returns:
- the FormDisplay associated to the given parameter
-
selectFormDisplayListByForm
public List<FormDisplay> selectFormDisplayListByForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:IFormDisplayDAOLoad the data of all the FormDisplay for a form and returns them as a list- Specified by:
selectFormDisplayListByFormin interfaceIFormDisplayDAO- Parameters:
nIdForm- the form idplugin- the plugin to use- Returns:
- The list which contains the data of all the FormDisplay objects
-