Class StepDAO
java.lang.Object
fr.paris.lutece.plugins.forms.business.StepDAO
- All Implemented Interfaces:
IStepDAO
This class provides Data Access methods for Step objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncountFinalStepsByFormIds(List<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 a new record in the table.load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableselectFinalStepList(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load finals steps list of the given formselectIdStepsList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the id of all the step objects and returns them as a listselectIdStepsListByForm(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 listselectInitialStep(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 ReferencelistselectStepsList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the step objects and returns them as a listselectStepsListbyForm(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 referenceListvoidUpdate the record in the table
-
Constructor Details
-
StepDAO
public StepDAO()
-
-
Method Details
-
insert
Insert a new record in the table. -
load
Load the data from the table -
selectInitialStep
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 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
Update the record in the table -
selectStepsList
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
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 List<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 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 Map<Integer,Integer> countFinalStepsByFormIds(List<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
-