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)
PlanVcsRevisionHistoryDaofindVcsRevisionHistoryItem in interface PlanVcsRevisionHistoryDao@NotNull public List<PlanVcsRevisionHistoryItem> findLatestVcsRevisionHistoryItems(@NotNull PlanKey planKey)
PlanVcsRevisionHistoryDaofindLatestVcsRevisionHistoryItems in interface PlanVcsRevisionHistoryDao@NotNull public List<PlanVcsRevisionHistoryItem> findLatestVcsRevisionHistoryItemsBeforeBuildNumber(@NotNull PlanKey planKey, int buildNumber)
PlanVcsRevisionHistoryDaofindLatestVcsRevisionHistoryItemsBeforeBuildNumber in interface PlanVcsRevisionHistoryDaopublic void createOrUpdateChangeDetectionHistoryItem(@NotNull
PlanVcsRevisionHistoryItem planVcsRevisionHistoryItem)
PlanVcsRevisionHistoryDaocreateOrUpdateChangeDetectionHistoryItem in interface PlanVcsRevisionHistoryDaopublic void moveRevisionHistoryForPlan(@NotNull
PlanKey oldPlanKey,
@NotNull
PlanKey newPlanKey)
moveRevisionHistoryForPlan in interface PlanVcsRevisionHistoryDaopublic void createChangeDetectionHistoryItem(@NotNull
PlanVcsRevisionHistoryItem planVcsRevisionHistoryItem)
PlanVcsRevisionHistoryDaocreateChangeDetectionHistoryItem in interface PlanVcsRevisionHistoryDaopublic void deleteVcsRevisionHistoryForPlan(@NotNull
PlanKey planKey)
PlanVcsRevisionHistoryDaodeleteVcsRevisionHistoryForPlan in interface PlanVcsRevisionHistoryDaopublic void cleanupUnusedEntriesForPlan(@NotNull
PlanKey planKey)
cleanupUnusedEntriesForPlan in interface PlanVcsRevisionHistoryDaoCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.