Class PlatformReleaseStepHome

java.lang.Object
fr.paris.lutece.plugins.releaser.business.platform.PlatformReleaseStepHome

public final class PlatformReleaseStepHome extends Object
This class provides instances management methods (create, find, ...) for PlatformReleaseStep objects
  • Method Details

    • create

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

      public static PlatformReleaseStep update(PlatformReleaseStep step)
      Update of the step which is specified in parameter
      Parameters:
      step - The instance of the PlatformReleaseStep 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
    • removeByPlatformRelease

      public static void removeByPlatformRelease(int nIdPlatformRelease)
      Remove every step of a campaign
      Parameters:
      nIdPlatformRelease - The campaign Id
    • findByPrimaryKey

      public static PlatformReleaseStep 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 PlatformReleaseStep, or null if not found
    • findByPlatformRelease

      public static List<PlatformReleaseStep> findByPlatformRelease(int nIdPlatformRelease)
      Returns the steps 1 to 5 of a campaign, ordered by step number : the verification of step 0 is left out
      Parameters:
      nIdPlatformRelease - The campaign Id
      Returns:
      the steps
    • findByPlatformReleaseAndNumber

      public static PlatformReleaseStep findByPlatformReleaseAndNumber(int nIdPlatformRelease, int nStepNumber)
      Returns one step of a campaign by its number, step 0 included
      Parameters:
      nIdPlatformRelease - The campaign Id
      nStepNumber - The step number
      Returns:
      the step, or null if not found