Interface IStepDAO

  • All Known Implementing Classes:
    StepDAO

    public interface IStepDAO
    IStepDAO Interface
    • Method Summary

      All Methods Instance Methods Abstract 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.
      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.
      void delete​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void insert​(Step step, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Step load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.List<Step> selectFinalStepList​(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load finals steps list of the given form
      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
      java.util.List<java.lang.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
      Step selectInitialStep​(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the initial step of the given form
      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
      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
      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
      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
      void store​(Step step, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
    • Method Detail

      • insert

        void insert​(Step step,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table.
        Parameters:
        step - instance of the Step object to insert
        plugin - the Plugin
      • store

        void store​(Step step,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Parameters:
        step - the reference of the Step
        plugin - 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 delete
        plugin - the Plugin
      • load

        Step load​(int nKey,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Parameters:
        nKey - The identifier of the step
        plugin - the Plugin
        Returns:
        The instance of the step
      • selectInitialStep

        Step selectInitialStep​(int nIdForm,
                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the initial step of the given form
        Parameters:
        nIdForm - The identifier of the step form
        plugin - the Plugin
        Returns:
        The initial step of the given form
      • selectFinalStepList

        java.util.List<Step> selectFinalStepList​(int nIdForm,
                                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load finals steps list of the given form
        Parameters:
        nIdForm - The identifier of the step form
        plugin - the Plugin
        Returns:
        List of finals steps of the given form
      • selectStepsList

        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
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the data of all the step objects
      • selectIdStepsList

        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
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the id of all the step objects
      • selectIdStepsListByForm

        java.util.List<java.lang.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 identifier
        plugin - 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

        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
        Parameters:
        nFormId - the parent form identifier
        plugin - 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 identifier
        plugin - the Plugin
        Returns:
        The Referencelist which contains the id and titles of all the step objects
      • countFinalStepsByFormIds

        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.
        Parameters:
        formIds - list of form IDs
        plugin - 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 ID
        idStepToExclude - step ID to exclude
        plugin - plugin
        Returns:
        number of other final steps