Package com.atlassian.bamboo.build
Interface BuildNumberGeneratorDao
- All Known Implementing Classes:
BuildNumberGeneratorDaoImpl
@Internal
public interface BuildNumberGeneratorDao
-
Method Summary
Modifier and TypeMethodDescriptionintgenerateBuildNumberNewTx(@NotNull PlanIdentifier planIdentifier) Generates a new build number for the given plan.intgetNextBuildNumber(@NotNull PlanIdentifier planIdentifier) Gets the next build number for the given plan.voidinitBuildNumbers(@NotNull PlanIdentifier planIdentifier) Initializes the build numbers for the given plan.voidinitBuildNumbersNewTx(@NotNull PlanIdentifier planIdentifier) Initializes the build numbers for the given plan.setNextBuildNumberNewTx(@NotNull PlanIdentifier planIdentifier, int newBuildNumber) Sets the next build number for the given plan.
-
Method Details
-
generateBuildNumberNewTx
Generates a new build number for the given plan.- Parameters:
planIdentifier- identifier of the plan for which the build number should be generated- Returns:
- the new build number
-
getNextBuildNumber
Gets the next build number for the given plan.- Parameters:
planIdentifier- identifier of the plan for which the build number is returned- Returns:
- the next build number
-
initBuildNumbers
Initializes the build numbers for the given plan.- Parameters:
planIdentifier- identifier of the plan for which the build numbers are initialized
-
initBuildNumbersNewTx
Initializes the build numbers for the given plan. Executed as a new transaction. Created for the testing purposes only.- Parameters:
planIdentifier- identifier of the plan for which the build numbers are initialized
-
setNextBuildNumberNewTx
SetNewBuildNumberResult setNextBuildNumberNewTx(@NotNull @NotNull PlanIdentifier planIdentifier, int newBuildNumber) Sets the next build number for the given plan.- Parameters:
planIdentifier- identifier of the plan for which the build number is setnewBuildNumber- the next build number- Returns:
- the result of the operation
-