Interface IStepDAO
- All Known Implementing Classes:
StepDAO
public interface IStepDAO
IStepDAO Interface
-
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 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 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
-
Method Details
-
insert
Insert a new record in the table.- Parameters:
step- instance of the Step object to insertplugin- the Plugin
-
store
Update the record in the table- Parameters:
step- the reference of the Stepplugin- 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 Step to deleteplugin- the Plugin
-
load
Load the data from the table- Parameters:
nKey- The identifier of the stepplugin- the Plugin- Returns:
- The instance of the step
-
selectInitialStep
Load the initial step of the given form- Parameters:
nIdForm- The identifier of the step formplugin- the Plugin- Returns:
- The initial step of the given form
-
selectFinalStepList
Load finals steps list of the given form- Parameters:
nIdForm- The identifier of the step formplugin- the Plugin- Returns:
- List of finals steps of the given form
-
selectStepsList
Load the data of all the step objects and returns them as a list- 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- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the step objects
-
selectIdStepsListByForm
List<Integer> selectIdStepsListByForm(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- Parameters:
nFormId- the parent form identifierplugin- the Plugin- Returns:
- The List which contains the id of all the step objects
-
selectStepsReferenceList
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- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the step objects
-
selectStepsListbyForm
Load the id of all the step linked a given parent form and returns them as a list- Parameters:
nFormId- the parent form identifierplugin- the Plugin- Returns:
- The list which contains the id of all the step objects
-
selectStepReferenceListbyForm
fr.paris.lutece.util.ReferenceList selectStepReferenceListbyForm(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 Referencelist- Parameters:
nFormId- the parent form identifierplugin- the Plugin- Returns:
- The Referencelist which contains the id and titles of all the step objects
-
countFinalStepsByFormIds
Map<Integer,Integer> countFinalStepsByFormIds(List<Integer> formIds, fr.paris.lutece.portal.service.plugin.Plugin plugin) Counts final steps for each form ID.- Parameters:
formIds- list of form IDsplugin- plugin- Returns:
- map: formId -> count of final steps
-
countOtherFinalSteps
int countOtherFinalSteps(int idForm, int idStepToExclude, fr.paris.lutece.portal.service.plugin.Plugin plugin) Counts other final steps of a form, excluding the given step ID.- Parameters:
idForm- form IDidStepToExclude- step ID to excludeplugin- plugin- Returns:
- number of other final steps
-