java.lang.Object
fr.paris.lutece.plugins.forms.business.StepDAO
All Implemented Interfaces:
IStepDAO

@ApplicationScoped public final class StepDAO extends Object implements IStepDAO
This class provides Data Access methods for Step objects
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    countFinalStepsByFormIds(List<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.
    load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from the table
    selectFinalStepList(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load finals steps list of the given form
    selectIdStepsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the id of all the step objects and returns them as a list
    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
    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
    selectStepsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the step objects and returns them as a list
    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

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StepDAO

      public StepDAO()
  • Method Details

    • insert

      public void insert(Step step, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Specified by:
      insert in interface IStepDAO
      Parameters:
      step - instance of the Step object to insert
      plugin - the Plugin
    • load

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

      public Step selectInitialStep(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the initial step of the given form
      Specified by:
      selectInitialStep in interface IStepDAO
      Parameters:
      nIdForm - The identifier of the step form
      plugin - 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:
      selectFinalStepList in interface IStepDAO
      Parameters:
      nIdForm - The identifier of the step form
      plugin - 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
      Specified by:
      delete in interface IStepDAO
      Parameters:
      nKey - The identifier of the Step to delete
      plugin - the Plugin
    • store

      public void store(Step step, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface IStepDAO
      Parameters:
      step - the reference of the Step
      plugin - the Plugin
    • selectStepsList

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

      public List<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:
      selectIdStepsList in interface IStepDAO
      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:
      selectIdStepsListByForm in interface IStepDAO
      Parameters:
      nIdForm - the parent form identifier
      plugin - 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:
      selectStepsReferenceList in interface IStepDAO
      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:
      selectStepsListbyForm in interface IStepDAO
      Parameters:
      nFormId - the parent form identifier
      plugin - 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: IStepDAO
      Load the id and title of all the step linked a given parent form and returns them as a Referencelist
      Specified by:
      selectStepReferenceListbyForm in interface IStepDAO
      Parameters:
      nFormId - the parent form identifier
      plugin - 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: IStepDAO
      Counts final steps for each form ID.
      Specified by:
      countFinalStepsByFormIds in interface IStepDAO
      Parameters:
      formIds - list of form IDs
      plugin - 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: IStepDAO
      Counts other final steps of a form, excluding the given step ID.
      Specified by:
      countOtherFinalSteps in interface IStepDAO
      Parameters:
      idForm - form ID
      idStepToExclude - step ID to exclude
      plugin - plugin
      Returns:
      number of other final steps