Class FormDisplayDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.forms.business.FormDisplayDAO
-
- All Implemented Interfaces:
IFormDisplayDAO
public final class FormDisplayDAO extends Object implements IFormDisplayDAO
This class provides Data Access methods for Form objects
-
-
Constructor Summary
Constructors Constructor Description FormDisplayDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(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.FormDisplayload(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableFormDisplayselectFormdisplayByFormStepAndComposite(int nIdForm, int nIdStep, int nIdComposite, fr.paris.lutece.portal.service.plugin.Plugin plugin)Select the FormDisplay associated to the given parameterList<FormDisplay>selectFormDisplayList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the FormDisplay objects and returns them as a listList<FormDisplay>selectFormDisplayListByForm(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 listList<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 listList<FormDisplay>selectFormDisplayListByParentOrderByQuestionExportDisplayOrder(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
-
-
-
Method Detail
-
insert
public void insert(FormDisplay formDisplay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceIFormDisplayDAO- Parameters:
formDisplay- instance of the FormDisplay object to insertplugin- the Plugin
-
load
public FormDisplay load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
public void store(FormDisplay formDisplay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Specified by:
storein interfaceIFormDisplayDAO- Parameters:
formDisplay- the reference of the FormDisplayplugin- the Plugin
-
selectFormDisplayList
public List<FormDisplay> selectFormDisplayList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
-
-