public class PlanVcsRevisionHistoryHibernateDao extends Object implements PlanVcsRevisionHistoryDao
Constructor and Description |
---|
PlanVcsRevisionHistoryHibernateDao() |
Modifier and Type | Method and Description |
---|---|
void |
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.
|
PlanVcsRevisionHistoryItem |
findVcsRevisionHistoryItem(@NotNull PlanKey planKey,
long repositoryId,
int buildNumber)
Retrieves a specific history item.
|
void |
moveRevisionHistoryForPlan(@NotNull PlanKey oldPlanKey,
@NotNull PlanKey newPlanKey) |
public PlanVcsRevisionHistoryItem findVcsRevisionHistoryItem(@NotNull @NotNull PlanKey planKey, long repositoryId, int buildNumber)
PlanVcsRevisionHistoryDao
findVcsRevisionHistoryItem
in interface PlanVcsRevisionHistoryDao
@NotNull public @NotNull List<PlanVcsRevisionHistoryItem> findLatestVcsRevisionHistoryItems(@NotNull @NotNull PlanKey planKey)
PlanVcsRevisionHistoryDao
findLatestVcsRevisionHistoryItems
in interface PlanVcsRevisionHistoryDao
@NotNull public @NotNull List<PlanVcsRevisionHistoryItem> findLatestVcsRevisionHistoryItemsBeforeBuildNumber(@NotNull @NotNull PlanKey planKey, int buildNumber)
PlanVcsRevisionHistoryDao
findLatestVcsRevisionHistoryItemsBeforeBuildNumber
in interface PlanVcsRevisionHistoryDao
public void createOrUpdateChangeDetectionHistoryItem(@NotNull @NotNull PlanVcsRevisionHistoryItem planVcsRevisionHistoryItem)
PlanVcsRevisionHistoryDao
createOrUpdateChangeDetectionHistoryItem
in interface PlanVcsRevisionHistoryDao
public void moveRevisionHistoryForPlan(@NotNull @NotNull PlanKey oldPlanKey, @NotNull @NotNull PlanKey newPlanKey)
moveRevisionHistoryForPlan
in interface PlanVcsRevisionHistoryDao
public void createChangeDetectionHistoryItem(@NotNull @NotNull PlanVcsRevisionHistoryItem planVcsRevisionHistoryItem)
PlanVcsRevisionHistoryDao
createChangeDetectionHistoryItem
in interface PlanVcsRevisionHistoryDao
public void deleteVcsRevisionHistoryForPlan(@NotNull @NotNull PlanKey planKey)
PlanVcsRevisionHistoryDao
deleteVcsRevisionHistoryForPlan
in interface PlanVcsRevisionHistoryDao
public void cleanupUnusedEntriesForPlan(@NotNull @NotNull PlanKey planKey)
cleanupUnusedEntriesForPlan
in interface PlanVcsRevisionHistoryDao
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.