public class PlanVcsRevisionHistoryHibernateDao extends Object implements PlanVcsRevisionHistoryDao
Constructor and Description |
---|
PlanVcsRevisionHistoryHibernateDao() |
Modifier and Type | Method and Description |
---|---|
void |
cleanupUnusedEntriesForPlan(PlanKey planKey) |
void |
createChangeDetectionHistoryItem(PlanVcsRevisionHistoryItem planVcsRevisionHistoryItem)
Inserts new history item.
|
void |
createOrUpdateChangeDetectionHistoryItem(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(PlanKey planKey)
Deletes entire revision history for a plan.
|
List<PlanVcsRevisionHistoryItem> |
findLatestVcsRevisionHistoryItems(PlanKey planKey)
Retrieves a list of history items with the highest build number.
|
List<PlanVcsRevisionHistoryItem> |
findLatestVcsRevisionHistoryItemsBeforeBuildNumber(PlanKey planKey,
int buildNumber)
Retrieves a list of history items with the highest build number that is lower than the argument.
|
PlanVcsRevisionHistoryItem |
findVcsRevisionHistoryItem(PlanKey planKey,
long repositoryId,
int buildNumber)
Retrieves a specific history item.
|
void |
moveRevisionHistoryForPlan(PlanKey oldPlanKey,
PlanKey newPlanKey) |
public PlanVcsRevisionHistoryItem findVcsRevisionHistoryItem(@NotNull PlanKey planKey, long repositoryId, int buildNumber)
PlanVcsRevisionHistoryDao
findVcsRevisionHistoryItem
in interface PlanVcsRevisionHistoryDao
@NotNull public List<PlanVcsRevisionHistoryItem> findLatestVcsRevisionHistoryItems(@NotNull PlanKey planKey)
PlanVcsRevisionHistoryDao
findLatestVcsRevisionHistoryItems
in interface PlanVcsRevisionHistoryDao
@NotNull public List<PlanVcsRevisionHistoryItem> findLatestVcsRevisionHistoryItemsBeforeBuildNumber(@NotNull PlanKey planKey, int buildNumber)
PlanVcsRevisionHistoryDao
findLatestVcsRevisionHistoryItemsBeforeBuildNumber
in interface PlanVcsRevisionHistoryDao
public void createOrUpdateChangeDetectionHistoryItem(@NotNull PlanVcsRevisionHistoryItem planVcsRevisionHistoryItem)
PlanVcsRevisionHistoryDao
createOrUpdateChangeDetectionHistoryItem
in interface PlanVcsRevisionHistoryDao
public void moveRevisionHistoryForPlan(@NotNull PlanKey oldPlanKey, @NotNull PlanKey newPlanKey)
moveRevisionHistoryForPlan
in interface PlanVcsRevisionHistoryDao
public void createChangeDetectionHistoryItem(@NotNull PlanVcsRevisionHistoryItem planVcsRevisionHistoryItem)
PlanVcsRevisionHistoryDao
createChangeDetectionHistoryItem
in interface PlanVcsRevisionHistoryDao
public void deleteVcsRevisionHistoryForPlan(@NotNull PlanKey planKey)
PlanVcsRevisionHistoryDao
deleteVcsRevisionHistoryForPlan
in interface PlanVcsRevisionHistoryDao
public void cleanupUnusedEntriesForPlan(@NotNull PlanKey planKey)
cleanupUnusedEntriesForPlan
in interface PlanVcsRevisionHistoryDao
Copyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.