public interface

PlanVcsRevisionHistoryDao

implements BambooObjectDao<T extends BambooObject>
com.atlassian.bamboo.plan.vcsRevision.PlanVcsRevisionHistoryDao
Known Indirect Subclasses

Summary

Public Methods
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.
@NotNull List<PlanVcsRevisionHistoryItem> findLatestVcsRevisionHistoryItems(PlanKey planKey)
Retrieves a list of history items with the highest build number.
@NotNull List<PlanVcsRevisionHistoryItem> findLatestVcsRevisionHistoryItemsBeforeBuildNumber(PlanKey planKey, int buildNumber)
Retrieves a list of history items with the highest build number that is lower than the argument.
@Nullable PlanVcsRevisionHistoryItem findVcsRevisionHistoryItem(PlanKey planKey, long repositoryId, int buildNumber)
Retrieves a specific history item.
[Expand]
Inherited Methods
From interface com.atlassian.bamboo.persistence3.BambooObjectDao

Public Methods

public void cleanupUnusedEntriesForPlan (PlanKey planKey)

public void createChangeDetectionHistoryItem (PlanVcsRevisionHistoryItem planVcsRevisionHistoryItem)

Inserts new history item.

public 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. Otherwise new one is created.

public void deleteVcsRevisionHistoryForPlan (PlanKey planKey)

Deletes entire revision history for a plan.

@NotNull public List<PlanVcsRevisionHistoryItem> findLatestVcsRevisionHistoryItems (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.

@NotNull public List<PlanVcsRevisionHistoryItem> findLatestVcsRevisionHistoryItemsBeforeBuildNumber (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.

@Nullable public PlanVcsRevisionHistoryItem findVcsRevisionHistoryItem (PlanKey planKey, long repositoryId, int buildNumber)

Retrieves a specific history item.