Class PlatformReleaseStepDAO

java.lang.Object
fr.paris.lutece.plugins.releaser.business.platform.PlatformReleaseStepDAO
All Implemented Interfaces:
IPlatformReleaseStepDAO

public final class PlatformReleaseStepDAO extends Object implements IPlatformReleaseStepDAO
This class provides Data Access methods for PlatformReleaseStep objects
  • Constructor Details

    • PlatformReleaseStepDAO

      public PlatformReleaseStepDAO()
  • Method Details

    • insert

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

      public void store(PlatformReleaseStep step, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface IPlatformReleaseStepDAO
      Parameters:
      step - the reference of the PlatformReleaseStep
      plugin - the Plugin
    • 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 IPlatformReleaseStepDAO
      Parameters:
      nKey - The identifier of the PlatformReleaseStep to delete
      plugin - the Plugin
    • deleteByPlatformRelease

      public void deleteByPlatformRelease(int nIdPlatformRelease, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete every step of a campaign
      Specified by:
      deleteByPlatformRelease in interface IPlatformReleaseStepDAO
      Parameters:
      nIdPlatformRelease - The identifier of the campaign
      plugin - the Plugin
    • load

      public PlatformReleaseStep load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Specified by:
      load in interface IPlatformReleaseStepDAO
      Parameters:
      nKey - The identifier of the PlatformReleaseStep
      plugin - the Plugin
      Returns:
      The instance of the PlatformReleaseStep, or null if not found
    • selectByPlatformRelease

      public List<PlatformReleaseStep> selectByPlatformRelease(int nIdPlatformRelease, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the steps 1 to 5 of a campaign, ordered by step number : the verification of step 0 is left out
      Specified by:
      selectByPlatformRelease in interface IPlatformReleaseStepDAO
      Parameters:
      nIdPlatformRelease - The identifier of the campaign
      plugin - the Plugin
      Returns:
      The steps
    • selectByPlatformReleaseAndNumber

      public PlatformReleaseStep selectByPlatformReleaseAndNumber(int nIdPlatformRelease, int nStepNumber, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load one step of a campaign by its number, step 0 included
      Specified by:
      selectByPlatformReleaseAndNumber in interface IPlatformReleaseStepDAO
      Parameters:
      nIdPlatformRelease - The identifier of the campaign
      nStepNumber - The step number
      plugin - the Plugin
      Returns:
      The step, or null if not found