Package com.atlassian.bamboo.build
Class BuildNumberGeneratorDaoImpl
java.lang.Object
com.atlassian.bamboo.build.BuildNumberGeneratorDaoImpl
- All Implemented Interfaces:
BuildNumberGeneratorDao
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
BuildNumberGeneratorDaoImpl
public BuildNumberGeneratorDaoImpl()
-
-
Method Details
-
generateBuildNumberNewTx
Description copied from interface:BuildNumberGeneratorDaoGenerates a new build number for the given plan.- Specified by:
generateBuildNumberNewTxin interfaceBuildNumberGeneratorDao- Parameters:
planIdentifier- identifier of the plan for which the build number should be generated- Returns:
- the new build number
-
initBuildNumbers
Description copied from interface:BuildNumberGeneratorDaoInitializes the build numbers for the given plan.- Specified by:
initBuildNumbersin interfaceBuildNumberGeneratorDao- Parameters:
planIdentifier- identifier of the plan for which the build numbers are initialized
-
initBuildNumbersNewTx
Description copied from interface:BuildNumberGeneratorDaoInitializes the build numbers for the given plan. Executed as a new transaction. Created for the testing purposes only.- Specified by:
initBuildNumbersNewTxin interfaceBuildNumberGeneratorDao- Parameters:
planIdentifier- identifier of the plan for which the build numbers are initialized
-
setNextBuildNumberNewTx
public SetNewBuildNumberResult setNextBuildNumberNewTx(@NotNull @NotNull PlanIdentifier planIdentifier, int newBuildNumber) Description copied from interface:BuildNumberGeneratorDaoSets the next build number for the given plan.- Specified by:
setNextBuildNumberNewTxin interfaceBuildNumberGeneratorDao- Parameters:
planIdentifier- identifier of the plan for which the build number is setnewBuildNumber- the next build number- Returns:
- the result of the operation
-
getNextBuildNumber
Description copied from interface:BuildNumberGeneratorDaoGets the next build number for the given plan.- Specified by:
getNextBuildNumberin interfaceBuildNumberGeneratorDao- Parameters:
planIdentifier- identifier of the plan for which the build number is returned- Returns:
- the next build number
-