Class StepDAO

  • All Implemented Interfaces:
    IStepDAO

    public final class StepDAO
    extends java.lang.Object
    implements IStepDAO
    This class provides Data Access methods for Step objects
    • Constructor Summary

      Constructors 
      Constructor Description
      StepDAO()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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 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
      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
      • Methods inherited from class java.lang.Object

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

      • StepDAO

        public StepDAO()
    • Method Detail

      • 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 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:
        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 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:
        selectStepsList in interface IStepDAO
        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:
        selectIdStepsList in interface IStepDAO
        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:
        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 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:
        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