Class DeploymentVersionLinkedJiraIssueDaoImpl
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate5.support.HibernateDaoSupport
com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
com.atlassian.bamboo.deployments.versions.persistence.issues.DeploymentVersionLinkedJiraIssueDaoImpl
- All Implemented Interfaces:
DeploymentVersionLinkedJiraIssueDao
,org.springframework.beans.factory.InitializingBean
public class DeploymentVersionLinkedJiraIssueDaoImpl
extends StatelessSessionHibernateDaoSupport
implements DeploymentVersionLinkedJiraIssueDao
-
Field Summary
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
-
Constructor Summary
ConstructorDescriptionDeploymentVersionLinkedJiraIssueDaoImpl
(TransactionAndHibernateTemplate transactionTemplate) -
Method Summary
Modifier and TypeMethodDescriptionint
delete
(@NotNull DeploymentVersionDeletionAdapter deletionAdapter) Delete DeploymentVersionLinkedJiraIssue records limited byDeletionSQLAdapter.getInClause()
.findJiraIssueKeysForProject
(long deploymentProjectId) @NotNull List<MutableDeploymentVersionLinkedJiraIssue>
findJiraIssueLinksForDeploymentVersion
(long deploymentVersionId) int
getJiraIssueCountForDeploymentVersion
(long deploymentVersionId) void
saveAll
(@NotNull Collection<MutableDeploymentVersionLinkedJiraIssue> linkedJiraIssues) Save all records in the collection.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
-
Constructor Details
-
DeploymentVersionLinkedJiraIssueDaoImpl
-
-
Method Details
-
saveAll
public void saveAll(@NotNull @NotNull Collection<MutableDeploymentVersionLinkedJiraIssue> linkedJiraIssues) Description copied from interface:DeploymentVersionLinkedJiraIssueDao
Save all records in the collection.- Specified by:
saveAll
in interfaceDeploymentVersionLinkedJiraIssueDao
-
delete
Description copied from interface:DeploymentVersionLinkedJiraIssueDao
Delete DeploymentVersionLinkedJiraIssue records limited byDeletionSQLAdapter.getInClause()
.- Specified by:
delete
in interfaceDeploymentVersionLinkedJiraIssueDao
- Parameters:
deletionAdapter
-DeletionSQLAdapter.getInClause()
should provide range of DeploymentVersionLinkedJiraIssue to remove- Returns:
- number of deleted DeploymentVersionLinkedJiraIssue records
-
findJiraIssueLinksForDeploymentVersion
@NotNull public @NotNull List<MutableDeploymentVersionLinkedJiraIssue> findJiraIssueLinksForDeploymentVersion(long deploymentVersionId) - Specified by:
findJiraIssueLinksForDeploymentVersion
in interfaceDeploymentVersionLinkedJiraIssueDao
- Returns:
- list of all JIRA issues associated with a deployment version
-
findJiraIssueKeysForProject
- Specified by:
findJiraIssueKeysForProject
in interfaceDeploymentVersionLinkedJiraIssueDao
- Returns:
- list of all JIRA issue keys associated with a project
-
getJiraIssueCountForDeploymentVersion
public int getJiraIssueCountForDeploymentVersion(long deploymentVersionId) - Specified by:
getJiraIssueCountForDeploymentVersion
in interfaceDeploymentVersionLinkedJiraIssueDao
- Returns:
- count of all JIRA issues associated with a deployment version
-