public class PlanVcsRevisionHistoryHibernateStandaloneDao extends BambooHibernateObjectDao<PlanVcsRevisionHistoryItem> implements PlanVcsRevisionHistoryStandaloneDao
Constructor and Description |
---|
PlanVcsRevisionHistoryHibernateStandaloneDao() |
Modifier and Type | Method and Description |
---|---|
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(Consumer<PlanVcsRevisionHistoryItem> consumer)
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.
|
countAll, countWithRestriction, delete, deleteAll, executeCountQuery, findAll, findById, save, saveAll
getCacheAwareHibernateTemplate
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countAll, countWithRestriction, delete, deleteAll, findAll, findById, save, saveAll
public PlanVcsRevisionHistoryHibernateStandaloneDao()
@Nullable public PlanVcsRevisionHistoryItem findLatestVcsRevisionHistoryItem(@NotNull PlanKey planKey)
PlanVcsRevisionHistoryStandaloneDao
findLatestVcsRevisionHistoryItem
in interface PlanVcsRevisionHistoryStandaloneDao
public PlanVcsRevisionHistoryItem findLatestVcsRevisionHistoryItem(long repositoryId)
PlanVcsRevisionHistoryStandaloneDao
findLatestVcsRevisionHistoryItem
in interface PlanVcsRevisionHistoryStandaloneDao
public void createChangeDetectionHistoryItem(@NotNull PlanVcsRevisionHistoryItem planVcsRevisionHistoryItem)
PlanVcsRevisionHistoryStandaloneDao
createChangeDetectionHistoryItem
in interface PlanVcsRevisionHistoryStandaloneDao
public long scrollPlanVcsRevisionHistoryItemsForExport(@NotNull Consumer<PlanVcsRevisionHistoryItem> consumer)
PlanVcsRevisionHistoryStandaloneDao
scrollPlanVcsRevisionHistoryItemsForExport
in interface PlanVcsRevisionHistoryStandaloneDao
consumer
- consumer to be executed function to be executed on each of the TestClassResultspublic void updateRepositoryIdForPlan(@NotNull PlanKey planKey, long repositoryId)
PlanVcsRevisionHistoryStandaloneDao
updateRepositoryIdForPlan
in interface PlanVcsRevisionHistoryStandaloneDao
public void removeVcsHistoryForPlan(PlanKey planKey)
PlanVcsRevisionHistoryStandaloneDao
removeVcsHistoryForPlan
in interface PlanVcsRevisionHistoryStandaloneDao
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.