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
-
-
Constructor Summary
Constructors Constructor Description DeploymentVersionLinkedJiraIssueDaoImpl(TransactionAndHibernateTemplate transactionTemplate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
delete(@NotNull DeploymentVersionDeletionAdapter deletionAdapter)
Delete DeploymentVersionLinkedJiraIssue records limited byDeletionSQLAdapter.getInClause()
.@NotNull List<String>
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
-
-
-
-
Constructor Detail
-
DeploymentVersionLinkedJiraIssueDaoImpl
public DeploymentVersionLinkedJiraIssueDaoImpl(TransactionAndHibernateTemplate transactionTemplate)
-
-
Method Detail
-
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
public int delete(@NotNull @NotNull DeploymentVersionDeletionAdapter deletionAdapter)
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
@NotNull public @NotNull List<String> findJiraIssueKeysForProject(long deploymentProjectId)
- 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
-
-