Class PlatformReleaseStepHome
java.lang.Object
fr.paris.lutece.plugins.releaser.business.platform.PlatformReleaseStepHome
This class provides instances management methods (create, find, ...) for PlatformReleaseStep objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic PlatformReleaseStepcreate(PlatformReleaseStep step) Create an instance of the step classstatic 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 outstatic PlatformReleaseStepfindByPlatformReleaseAndNumber(int nIdPlatformRelease, int nStepNumber) Returns one step of a campaign by its number, step 0 includedstatic PlatformReleaseStepfindByPrimaryKey(int nKey) Returns an instance of a step whose identifier is specified in parameterstatic voidremove(int nKey) Remove the step whose identifier is specified in parameterstatic voidremoveByPlatformRelease(int nIdPlatformRelease) Remove every step of a campaignstatic PlatformReleaseStepupdate(PlatformReleaseStep step) Update of the step which is specified in parameter
-
Method Details
-
create
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
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
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
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 IdnStepNumber- The step number- Returns:
- the step, or null if not found
-