Class PlanVcsRevisionHistoryHibernateStandaloneDao
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate5.support.HibernateDaoSupport
com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
com.atlassian.bamboo.persistence3.BambooHibernateObjectDao<PlanVcsRevisionHistoryItem>
com.atlassian.bamboo.plan.vcsRevision.PlanVcsRevisionHistoryHibernateStandaloneDao
- All Implemented Interfaces:
BambooObjectDao<PlanVcsRevisionHistoryItem>
,PlanVcsRevisionHistoryStandaloneDao
,org.springframework.beans.factory.InitializingBean
public class PlanVcsRevisionHistoryHibernateStandaloneDao
extends BambooHibernateObjectDao<PlanVcsRevisionHistoryItem>
implements PlanVcsRevisionHistoryStandaloneDao
-
Field Summary
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
scrollPlanVcsRevisionHistoryItemsForExport
(@NotNull Consumer<PlanVcsRevisionHistoryItem> consumer) Scroll through and execute function for each of PlanVcsRevisionHistoryItem Objects passed to function are not fully initialized.void
updateRepositoryIdForPlan
(@NotNull PlanKey planKey, long oldRepositoryId, long repositoryId) Update all repository entries for PlanKey re-setting repository id in all of them.Methods inherited from class com.atlassian.bamboo.persistence3.BambooHibernateObjectDao
convertSearchTermToLikeExpression, countAll, countWithRestriction, delete, deleteAll, executeCountQuery, findAll, findById, merge, save, saveAll
Methods inherited from class com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
getCacheAwareHibernateTemplate
Methods inherited from class org.springframework.orm.hibernate5.support.HibernateDaoSupport
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectDao
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
-
Constructor Details
-
PlanVcsRevisionHistoryHibernateStandaloneDao
public PlanVcsRevisionHistoryHibernateStandaloneDao()
-
-
Method Details
-
scrollPlanVcsRevisionHistoryItemsForExport
public long scrollPlanVcsRevisionHistoryItemsForExport(@NotNull @NotNull Consumer<PlanVcsRevisionHistoryItem> consumer) Description copied from interface:PlanVcsRevisionHistoryStandaloneDao
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.- Specified by:
scrollPlanVcsRevisionHistoryItemsForExport
in interfacePlanVcsRevisionHistoryStandaloneDao
- Parameters:
consumer
- consumer to be executed function to be executed on each of the TestClassResults- Returns:
- number of traversed rows
-
updateRepositoryIdForPlan
public void updateRepositoryIdForPlan(@NotNull @NotNull PlanKey planKey, long oldRepositoryId, long repositoryId) Description copied from interface:PlanVcsRevisionHistoryStandaloneDao
Update all repository entries for PlanKey re-setting repository id in all of them. Used in upgrade task.- Specified by:
updateRepositoryIdForPlan
in interfacePlanVcsRevisionHistoryStandaloneDao
-