Class StepHome


  • public final class StepHome
    extends Object
    This class provides instances management methods (create, find, ...) for Step objects
    • Method Detail

      • create

        public static Step create​(Step step)
        Create an instance of the step class
        Parameters:
        step - The instance of the Step which contains the informations to store
        Returns:
        The instance of step which has been created with its primary key.
      • update

        public static Step update​(Step step)
        Update of the step which is specified in parameter
        Parameters:
        step - The instance of the Step which contains the data to store
        Returns:
        The instance of the step which has been updated
      • remove

        public static void remove​(int nKey)
        Remove the step whose identifier is specified in parameter
        Parameters:
        nKey - The step Id
      • findByPrimaryKey

        public static Step findByPrimaryKey​(int nKey)
        Returns an instance of a step whose identifier is specified in parameter
        Parameters:
        nKey - The step primary key
        Returns:
        an instance of Step
      • getInitialStep

        public static Step getInitialStep​(int nIdForm)
        Returns the initial step of the given form id
        Parameters:
        nIdForm - The step form primary key
        Returns:
        the initial step of the given form id
      • getStepsList

        public static List<Step> getStepsList()
        Load the data of all the step objects and returns them as a list
        Returns:
        the list which contains the data of all the step objects
      • getStepsListByForm

        public static List<Step> getStepsListByForm​(int nFormId)
        Load the data of all the steps linked to a given form and returns them as a list
        Parameters:
        nFormId - the form identifier
        Returns:
        the list which contains the data of all the step objects
      • getStepReferenceListByForm

        public static fr.paris.lutece.util.ReferenceList getStepReferenceListByForm​(int nFormId)
        Load the data of all the steps linked to a given form and returns them as a ReferenceList
        Parameters:
        nFormId - the form identifier
        Returns:
        the ReferenceList which contains the data of all the step objects
      • getIdStepsList

        public static List<Integer> getIdStepsList()
        Load the id of all the step objects and returns them as a list
        Returns:
        the list which contains the id of all the step objects
      • getIdStepsListByForm

        public static List<Integer> getIdStepsListByForm​(int nIdForm)
        Load the id of all the step objects linked to a given form and returns them as a list
        Parameters:
        nIdForm - the form identifier
        Returns:
        the list which contains the id of all the step objects
      • getStepsReferenceList

        public static fr.paris.lutece.util.ReferenceList getStepsReferenceList()
        Load the data of all the step objects and returns them as a referenceList
        Returns:
        the referenceList which contains the data of all the step objects