Class PlanVcsRevisionHistoryHibernateStandaloneDao
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate5.support.HibernateDaoSupport
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongscrollPlanVcsRevisionHistoryItemsForExport(@NotNull Consumer<PlanVcsRevisionHistoryItem> consumer) Scroll through and execute function for each of PlanVcsRevisionHistoryItem Objects passed to function are not fully initialized.voidupdateRepositoryIdForPlan(@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, findAll, findById, merge, save, saveAllMethods inherited from class org.springframework.orm.hibernate5.support.HibernateDaoSupport
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactoryMethods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
-
Constructor Details
-
PlanVcsRevisionHistoryHibernateStandaloneDao
public PlanVcsRevisionHistoryHibernateStandaloneDao()
-
-
Method Details
-
scrollPlanVcsRevisionHistoryItemsForExport
public long scrollPlanVcsRevisionHistoryItemsForExport(@NotNull @NotNull Consumer<PlanVcsRevisionHistoryItem> consumer) Description copied from interface:PlanVcsRevisionHistoryStandaloneDaoScroll 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:
scrollPlanVcsRevisionHistoryItemsForExportin 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:PlanVcsRevisionHistoryStandaloneDaoUpdate all repository entries for PlanKey re-setting repository id in all of them. Used in upgrade task.- Specified by:
updateRepositoryIdForPlanin interfacePlanVcsRevisionHistoryStandaloneDao- Parameters:
planKey-repositoryId-
-