Interface PlanVcsRevisionHistoryDao
- All Known Implementing Classes:
PlanVcsRevisionHistoryHibernateDao
@Internal
public interface PlanVcsRevisionHistoryDao
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanupUnusedEntriesForPlan
(@NotNull PlanKey planKey) void
createChangeDetectionHistoryItem
(@NotNull PlanVcsRevisionHistoryItem planVcsRevisionHistoryItem) Inserts new history item.void
createOrUpdateChangeDetectionHistoryItem
(@NotNull PlanVcsRevisionHistoryItem planVcsRevisionHistoryItem) If item with the same plan key and build number exists it is updated with vcs information from the current one.void
deleteVcsRevisionHistoryForPlan
(@NotNull PlanKey planKey) Deletes entire revision history for a plan.@NotNull List<PlanVcsRevisionHistoryItem>
findLatestVcsRevisionHistoryItems
(@NotNull PlanKey planKey) Retrieves a list of history items with the highest build number.@NotNull List<PlanVcsRevisionHistoryItem>
findLatestVcsRevisionHistoryItemsBeforeBuildNumber
(@NotNull PlanKey planKey, int buildNumber) Retrieves a list of history items with the highest build number that is lower than the argument.@Nullable PlanVcsRevisionHistoryItem
findVcsRevisionHistoryItem
(@NotNull PlanKey planKey, long repositoryId, int buildNumber) Retrieves a specific history item.void
moveRevisionHistoryForPlan
(@NotNull PlanKey oldPlanKey, @NotNull PlanKey newPlanKey)
-
Method Details
-
findVcsRevisionHistoryItem
@Nullable @Nullable PlanVcsRevisionHistoryItem findVcsRevisionHistoryItem(@NotNull @NotNull PlanKey planKey, long repositoryId, int buildNumber) Retrieves a specific history item.- Parameters:
planKey
-repositoryId
-buildNumber
-- Returns:
-
findLatestVcsRevisionHistoryItems
@NotNull @NotNull List<PlanVcsRevisionHistoryItem> findLatestVcsRevisionHistoryItems(@NotNull @NotNull PlanKey planKey) Retrieves a list of history items with the highest build number. Note: the highest build number is determined once per plan and not for each repository.- Parameters:
planKey
-- Returns:
-
findLatestVcsRevisionHistoryItemsBeforeBuildNumber
@NotNull @NotNull List<PlanVcsRevisionHistoryItem> findLatestVcsRevisionHistoryItemsBeforeBuildNumber(@NotNull @NotNull PlanKey planKey, int buildNumber) Retrieves a list of history items with the highest build number that is lower than the argument. Note: the highest build number is determined once per plan and not for each repository.- Parameters:
planKey
-buildNumber
-- Returns:
-
createChangeDetectionHistoryItem
void createChangeDetectionHistoryItem(@NotNull @NotNull PlanVcsRevisionHistoryItem planVcsRevisionHistoryItem) Inserts new history item.- Parameters:
planVcsRevisionHistoryItem
-
-
createOrUpdateChangeDetectionHistoryItem
void createOrUpdateChangeDetectionHistoryItem(@NotNull @NotNull PlanVcsRevisionHistoryItem planVcsRevisionHistoryItem) If item with the same plan key and build number exists it is updated with vcs information from the current one. Otherwise new one is created.- Parameters:
planVcsRevisionHistoryItem
-
-
deleteVcsRevisionHistoryForPlan
Deletes entire revision history for a plan.- Parameters:
planKey
-
-
cleanupUnusedEntriesForPlan
-
moveRevisionHistoryForPlan
-