com.atlassian.bamboo.plan.vcsRevision
Interface PlanVcsRevisionHistoryStandaloneDao

All Superinterfaces:
BambooObjectDao<PlanVcsRevisionHistoryItem>
All Known Implementing Classes:
PlanVcsRevisionHistoryHibernateStandaloneDao

public interface PlanVcsRevisionHistoryStandaloneDao
extends BambooObjectDao<PlanVcsRevisionHistoryItem>


Method Summary
 void createChangeDetectionHistoryItem(PlanVcsRevisionHistoryItem planVcsRevisionHistoryItem)
          Inserts new history item.
 PlanVcsRevisionHistoryItem findLatestVcsRevisionHistoryItem(long repositoryId)
          Retrieves a history item with the highest build number.
 PlanVcsRevisionHistoryItem findLatestVcsRevisionHistoryItem(PlanKey planKey)
          Retrieves a history item with the highest build number.
 void removeVcsHistoryForPlan(PlanKey planKey)
          Remove all history for PlanKey.
 long scrollPlanVcsRevisionHistoryItemsForExport(com.google.common.base.Function<PlanVcsRevisionHistoryItem,java.lang.Void> function)
          Scroll through and execute function for each of PlanVcsRevisionHistoryItem Objects passed to function are not fully initialized.
 void updateRepositoryIdForPlan(PlanKey planKey, long repositoryId)
          Update all repository entries for PlanKey setting repository id in all of them.
 
Methods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectDao
delete, deleteAll, executeReturnLong, findAll, findById, save, saveAll
 

Method Detail

findLatestVcsRevisionHistoryItem

@Nullable
PlanVcsRevisionHistoryItem findLatestVcsRevisionHistoryItem(@NotNull
                                                                     PlanKey planKey)
Retrieves a history item with the highest build number.

Parameters:
planKey -
Returns:

findLatestVcsRevisionHistoryItem

@Nullable
PlanVcsRevisionHistoryItem findLatestVcsRevisionHistoryItem(long repositoryId)
Retrieves a history item with the highest build number.

Parameters:
repositoryId -
Returns:

createChangeDetectionHistoryItem

void createChangeDetectionHistoryItem(@NotNull
                                      PlanVcsRevisionHistoryItem planVcsRevisionHistoryItem)
Inserts new history item.

Parameters:
planVcsRevisionHistoryItem -

scrollPlanVcsRevisionHistoryItemsForExport

long scrollPlanVcsRevisionHistoryItemsForExport(@NotNull
                                                com.google.common.base.Function<PlanVcsRevisionHistoryItem,java.lang.Void> function)
Scroll through and execute function for each of PlanVcsRevisionHistoryItem Objects passed to function are not fully initialized. Collections are empty and related objects have only id set.

Parameters:
function - function to be executed on each of the TestClassResults
Returns:
number of traversed rows

updateRepositoryIdForPlan

void updateRepositoryIdForPlan(@NotNull
                               PlanKey planKey,
                               long repositoryId)
Update all repository entries for PlanKey setting repository id in all of them. Used in upgrade task.

Parameters:
planKey -
repositoryId -

removeVcsHistoryForPlan

void removeVcsHistoryForPlan(PlanKey planKey)
Remove all history for PlanKey. Used in upgrade task.

Parameters:
planKey -


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.