Class PlanVcsRevisionHistoryHibernateDao
- java.lang.Object
-
- com.atlassian.bamboo.plan.vcsRevision.PlanVcsRevisionHistoryHibernateDao
-
- All Implemented Interfaces:
PlanVcsRevisionHistoryDao
public class PlanVcsRevisionHistoryHibernateDao extends Object implements PlanVcsRevisionHistoryDao
-
-
Constructor Summary
Constructors Constructor Description PlanVcsRevisionHistoryHibernateDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
findVcsRevisionHistoryItem
public PlanVcsRevisionHistoryItem findVcsRevisionHistoryItem(@NotNull @NotNull PlanKey planKey, long repositoryId, int buildNumber)
Description copied from interface:PlanVcsRevisionHistoryDao
Retrieves a specific history item.- Specified by:
findVcsRevisionHistoryItem
in interfacePlanVcsRevisionHistoryDao
- Returns:
-
findLatestVcsRevisionHistoryItems
@NotNull public @NotNull List<PlanVcsRevisionHistoryItem> findLatestVcsRevisionHistoryItems(@NotNull @NotNull PlanKey planKey)
Description copied from interface:PlanVcsRevisionHistoryDao
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.- Specified by:
findLatestVcsRevisionHistoryItems
in interfacePlanVcsRevisionHistoryDao
- Returns:
-
findLatestVcsRevisionHistoryItemsBeforeBuildNumber
@NotNull public @NotNull List<PlanVcsRevisionHistoryItem> findLatestVcsRevisionHistoryItemsBeforeBuildNumber(@NotNull @NotNull PlanKey planKey, int buildNumber)
Description copied from interface:PlanVcsRevisionHistoryDao
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.- Specified by:
findLatestVcsRevisionHistoryItemsBeforeBuildNumber
in interfacePlanVcsRevisionHistoryDao
- Returns:
-
createOrUpdateChangeDetectionHistoryItem
public void createOrUpdateChangeDetectionHistoryItem(@NotNull @NotNull PlanVcsRevisionHistoryItem planVcsRevisionHistoryItem)
Description copied from interface:PlanVcsRevisionHistoryDao
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.- Specified by:
createOrUpdateChangeDetectionHistoryItem
in interfacePlanVcsRevisionHistoryDao
-
moveRevisionHistoryForPlan
public void moveRevisionHistoryForPlan(@NotNull @NotNull PlanKey oldPlanKey, @NotNull @NotNull PlanKey newPlanKey)
- Specified by:
moveRevisionHistoryForPlan
in interfacePlanVcsRevisionHistoryDao
-
createChangeDetectionHistoryItem
public void createChangeDetectionHistoryItem(@NotNull @NotNull PlanVcsRevisionHistoryItem planVcsRevisionHistoryItem)
Description copied from interface:PlanVcsRevisionHistoryDao
Inserts new history item.- Specified by:
createChangeDetectionHistoryItem
in interfacePlanVcsRevisionHistoryDao
-
deleteVcsRevisionHistoryForPlan
public void deleteVcsRevisionHistoryForPlan(@NotNull @NotNull PlanKey planKey)
Description copied from interface:PlanVcsRevisionHistoryDao
Deletes entire revision history for a plan.- Specified by:
deleteVcsRevisionHistoryForPlan
in interfacePlanVcsRevisionHistoryDao
-
cleanupUnusedEntriesForPlan
public void cleanupUnusedEntriesForPlan(@NotNull @NotNull PlanKey planKey)
- Specified by:
cleanupUnusedEntriesForPlan
in interfacePlanVcsRevisionHistoryDao
-
-