Class LinkedJiraIssueHibernateDao
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate5.support.HibernateDaoSupport
com.atlassian.bamboo.persistence3.BambooHibernateObjectDao<LinkedJiraIssue>
com.atlassian.bamboo.resultsummary.LinkedJiraIssueHibernateDao
- All Implemented Interfaces:
BambooObjectDao<LinkedJiraIssue>,LinkedJiraIssueDao,org.springframework.beans.factory.InitializingBean
public class LinkedJiraIssueHibernateDao
extends BambooHibernateObjectDao<LinkedJiraIssue>
implements LinkedJiraIssueDao
-
Field Summary
Fields inherited from class org.springframework.dao.support.DaoSupport
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLinkedJiraIssuesForBuildNumberRange(@NotNull PlanKey planKey, int firstBuildNumber, int lastBuildNumber) Find and retrieve all jira issues related to build results from specified range.longscrollJiraIssuesForExport(@NotNull Consumer<LinkedJiraIssue> consumer) Scroll through and execute function for each of LinkedJiraIssue Objects passed to function are not fully initialized.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
-
LinkedJiraIssueHibernateDao
public LinkedJiraIssueHibernateDao()
-
-
Method Details
-
scrollJiraIssuesForExport
Description copied from interface:LinkedJiraIssueDaoScroll through and execute function for each of LinkedJiraIssue Objects passed to function are not fully initialized. Collections are empty and related objects have only id set.- Specified by:
scrollJiraIssuesForExportin interfaceLinkedJiraIssueDao- Parameters:
consumer- consumer that will consume each of the LinkedJiraIssues- Returns:
- number of traversed rows
-
getLinkedJiraIssuesForBuildNumberRange
public Collection<LinkedJiraIssue> getLinkedJiraIssuesForBuildNumberRange(@NotNull @NotNull PlanKey planKey, int firstBuildNumber, int lastBuildNumber) Description copied from interface:LinkedJiraIssueDaoFind and retrieve all jira issues related to build results from specified range. Once off results are skipped.- Specified by:
getLinkedJiraIssuesForBuildNumberRangein interfaceLinkedJiraIssueDao- Parameters:
planKey-firstBuildNumber-lastBuildNumber-- Returns:
-