Interface BuildNumberGeneratorDao

All Known Implementing Classes:
BuildNumberGeneratorDaoImpl

@Internal public interface BuildNumberGeneratorDao
  • Method Details

    • generateBuildNumberNewTx

      int generateBuildNumberNewTx(@NotNull @NotNull PlanIdentifier planIdentifier)
      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

      int getNextBuildNumber(@NotNull @NotNull PlanIdentifier planIdentifier)
      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

      void initBuildNumbers(@NotNull @NotNull PlanIdentifier planIdentifier)
      Initializes the build numbers for the given plan.
      Parameters:
      planIdentifier - identifier of the plan for which the build numbers are initialized
    • initBuildNumbersNewTx

      void initBuildNumbersNewTx(@NotNull @NotNull PlanIdentifier planIdentifier)
      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 set
      newBuildNumber - the next build number
      Returns:
      the result of the operation