Class BuildNumberGeneratorDaoImpl

java.lang.Object
com.atlassian.bamboo.build.BuildNumberGeneratorDaoImpl
All Implemented Interfaces:
BuildNumberGeneratorDao

public class BuildNumberGeneratorDaoImpl extends Object implements BuildNumberGeneratorDao
  • Constructor Details

    • BuildNumberGeneratorDaoImpl

      public BuildNumberGeneratorDaoImpl()
  • Method Details

    • generateBuildNumberNewTx

      public int generateBuildNumberNewTx(@NotNull @NotNull PlanIdentifier planIdentifier)
      Description copied from interface: BuildNumberGeneratorDao
      Generates a new build number for the given plan.
      Specified by:
      generateBuildNumberNewTx in interface BuildNumberGeneratorDao
      Parameters:
      planIdentifier - identifier of the plan for which the build number should be generated
      Returns:
      the new build number
    • initBuildNumbers

      public void initBuildNumbers(@NotNull @NotNull PlanIdentifier planIdentifier)
      Description copied from interface: BuildNumberGeneratorDao
      Initializes the build numbers for the given plan.
      Specified by:
      initBuildNumbers in interface BuildNumberGeneratorDao
      Parameters:
      planIdentifier - identifier of the plan for which the build numbers are initialized
    • initBuildNumbersNewTx

      public void initBuildNumbersNewTx(@NotNull @NotNull PlanIdentifier planIdentifier)
      Description copied from interface: BuildNumberGeneratorDao
      Initializes the build numbers for the given plan. Executed as a new transaction. Created for the testing purposes only.
      Specified by:
      initBuildNumbersNewTx in interface BuildNumberGeneratorDao
      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: BuildNumberGeneratorDao
      Sets the next build number for the given plan.
      Specified by:
      setNextBuildNumberNewTx in interface BuildNumberGeneratorDao
      Parameters:
      planIdentifier - identifier of the plan for which the build number is set
      newBuildNumber - the next build number
      Returns:
      the result of the operation
    • getNextBuildNumber

      public int getNextBuildNumber(@NotNull @NotNull PlanIdentifier planIdentifier)
      Description copied from interface: BuildNumberGeneratorDao
      Gets the next build number for the given plan.
      Specified by:
      getNextBuildNumber in interface BuildNumberGeneratorDao
      Parameters:
      planIdentifier - identifier of the plan for which the build number is returned
      Returns:
      the next build number