Class StepDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.forms.business.StepDAO
-
-
Constructor Summary
Constructors Constructor Description StepDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.Integer,java.lang.Integer>countFinalStepsByFormIds(java.util.List<java.lang.Integer> formIds, fr.paris.lutece.portal.service.plugin.Plugin plugin)Counts final steps for each form ID.intcountOtherFinalSteps(int idForm, int idStepToExclude, fr.paris.lutece.portal.service.plugin.Plugin plugin)Counts other final steps of a form, excluding the given step ID.voiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoidinsert(Step step, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.Stepload(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablejava.util.List<Step>selectFinalStepList(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load finals steps list of the given formjava.util.List<java.lang.Integer>selectIdStepsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the id of all the step objects and returns them as a listjava.util.List<java.lang.Integer>selectIdStepsListByForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the id of all the step linked a given parent form and returns them as a listStepselectInitialStep(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the initial step of the given formfr.paris.lutece.util.ReferenceListselectStepReferenceListbyForm(int nFormId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the id and title of all the step linked a given parent form and returns them as a Referencelistjava.util.List<Step>selectStepsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the step objects and returns them as a listjava.util.List<Step>selectStepsListbyForm(int nFormId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the id of all the step linked a given parent form and returns them as a listfr.paris.lutece.util.ReferenceListselectStepsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the step objects and returns them as a referenceListvoidstore(Step step, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(Step step, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
-
load
public Step load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
-
selectInitialStep
public Step selectInitialStep(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the initial step of the given form- Specified by:
selectInitialStepin interfaceIStepDAO- Parameters:
nIdForm- The identifier of the step formplugin- the Plugin- Returns:
- The initial step of the given form
-
selectFinalStepList
public java.util.List<Step> selectFinalStepList(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load finals steps list of the given form- Specified by:
selectFinalStepListin interfaceIStepDAO- Parameters:
nIdForm- The identifier of the step formplugin- the Plugin- Returns:
- List of finals steps of the given form
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table
-
store
public void store(Step step, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
-
selectStepsList
public java.util.List<Step> selectStepsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the step objects and returns them as a list- Specified by:
selectStepsListin interfaceIStepDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the step objects
-
selectIdStepsList
public java.util.List<java.lang.Integer> selectIdStepsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the step objects and returns them as a list- Specified by:
selectIdStepsListin interfaceIStepDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the step objects
-
selectIdStepsListByForm
public java.util.List<java.lang.Integer> selectIdStepsListByForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the id of all the step linked a given parent form and returns them as a list- Specified by:
selectIdStepsListByFormin interfaceIStepDAO- Parameters:
nIdForm- the parent form identifierplugin- the Plugin- Returns:
- The List which contains the id of all the step objects
-
selectStepsReferenceList
public fr.paris.lutece.util.ReferenceList selectStepsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the step objects and returns them as a referenceList- Specified by:
selectStepsReferenceListin interfaceIStepDAO- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the step objects
-
selectStepsListbyForm
public java.util.List<Step> selectStepsListbyForm(int nFormId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the step linked a given parent form and returns them as a list- Specified by:
selectStepsListbyFormin interfaceIStepDAO- Parameters:
nFormId- the parent form identifierplugin- the Plugin- Returns:
- The list which contains the id of all the step objects
-
selectStepReferenceListbyForm
public fr.paris.lutece.util.ReferenceList selectStepReferenceListbyForm(int nFormId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Description copied from interface:IStepDAOLoad the id and title of all the step linked a given parent form and returns them as a Referencelist- Specified by:
selectStepReferenceListbyFormin interfaceIStepDAO- Parameters:
nFormId- the parent form identifierplugin- the Plugin- Returns:
- The Referencelist which contains the id and titles of all the step objects
-
countFinalStepsByFormIds
public java.util.Map<java.lang.Integer,java.lang.Integer> countFinalStepsByFormIds(java.util.List<java.lang.Integer> formIds, fr.paris.lutece.portal.service.plugin.Plugin plugin)Description copied from interface:IStepDAOCounts final steps for each form ID.- Specified by:
countFinalStepsByFormIdsin interfaceIStepDAO- Parameters:
formIds- list of form IDsplugin- plugin- Returns:
- map: formId -> count of final steps
-
countOtherFinalSteps
public int countOtherFinalSteps(int idForm, int idStepToExclude, fr.paris.lutece.portal.service.plugin.Plugin plugin)Description copied from interface:IStepDAOCounts other final steps of a form, excluding the given step ID.- Specified by:
countOtherFinalStepsin interfaceIStepDAO- Parameters:
idForm- form IDidStepToExclude- step ID to excludeplugin- plugin- Returns:
- number of other final steps
-
-