Interface ITransitionDAO

  • All Known Implementing Classes:
    TransitionDAO

    public interface ITransitionDAO
    ITransitionDAO Interface
    • Method Summary

      All Methods Instance Methods Abstract 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 deleteByStep​(int nIdStep, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove all the transitions starting from or leading to a given step
      Transition getTransitionByPriority​(int nIdStep, int nPriority, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of a transition object from the given step and the given priority
      void insert​(Transition transition, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Transition load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      List<Integer> selectIdTransitionsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id of all the transition objects and returns them as a list
      int selectMaxPriorityByStep​(int nIdStep, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Return the maximum priority value of the transitions from the given starting step
      List<Transition> selectTransitionsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the transition objects and returns them as a list
      List<Transition> selectTransitionsListFromForm​(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Select the transitions list from given form
      List<Transition> selectTransitionsListFromStep​(int nIdStep, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the transition objects from given step and returns them as a list
      fr.paris.lutece.util.ReferenceList selectTransitionsReferenceList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the transition objects and returns them as a referenceList
      void store​(Transition transition, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
    • Method Detail

      • insert

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

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

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

        List<Transition> selectTransitionsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the transition objects and returns them as a list
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the data of all the transition objects
      • selectIdTransitionsList

        List<Integer> selectIdTransitionsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the id of all the transition objects and returns them as a list
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the id of all the transition objects
      • selectTransitionsReferenceList

        fr.paris.lutece.util.ReferenceList selectTransitionsReferenceList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the transition objects and returns them as a referenceList
        Parameters:
        plugin - the Plugin
        Returns:
        The referenceList which contains the data of all the transition objects
      • selectTransitionsListFromStep

        List<Transition> selectTransitionsListFromStep​(int nIdStep,
                                                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the transition objects from given step and returns them as a list
        Parameters:
        nIdStep - The identifier of the starting step
        plugin - the Plugin
        Returns:
        The list which contains the data of all the transition objects
      • getTransitionByPriority

        Transition getTransitionByPriority​(int nIdStep,
                                           int nPriority,
                                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of a transition object from the given step and the given priority
        Parameters:
        nIdStep - The identifier of the step
        nPriority - The priority value
        plugin - The Plugin
        Returns:
        the Transition object if existing
      • selectMaxPriorityByStep

        int selectMaxPriorityByStep​(int nIdStep,
                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Return the maximum priority value of the transitions from the given starting step
        Parameters:
        nIdStep - The identifier of the step
        plugin - The Plugin
        Returns:
        the Transition object if existing
      • deleteByStep

        void deleteByStep​(int nIdStep,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Remove all the transitions starting from or leading to a given step
        Parameters:
        nIdStep - The Step Id
        plugin - The Plugin
      • selectTransitionsListFromForm

        List<Transition> selectTransitionsListFromForm​(int nIdForm,
                                                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Select the transitions list from given form
        Parameters:
        nIdForm - The Form id
        plugin - The plugin
        Returns:
        the transitions list from given form id