com.atlassian.bamboo.deployments.versions.persistence.issues
Class DeploymentVersionLinkedJiraIssueDaoImpl
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.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
Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport |
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, 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 |
DeploymentVersionLinkedJiraIssueDaoImpl
public DeploymentVersionLinkedJiraIssueDaoImpl(TransactionAndHibernateTemplate transactionTemplate)
saveAll
public void saveAll(@NotNull
Collection<MutableDeploymentVersionLinkedJiraIssue> linkedJiraIssues)
- Description copied from interface:
DeploymentVersionLinkedJiraIssueDao
- Save all records in the collection.
- Specified by:
saveAll
in interface DeploymentVersionLinkedJiraIssueDao
delete
public int delete(@NotNull
DeploymentVersionDeletionAdapter deletionAdapter)
- Description copied from interface:
DeploymentVersionLinkedJiraIssueDao
- Delete DeploymentVersionLinkedJiraIssue records limited by
DeletionSQLAdapter.getInClause()
.
- Specified by:
delete
in interface DeploymentVersionLinkedJiraIssueDao
- Parameters:
deletionAdapter
- DeletionSQLAdapter.getInClause()
should provide range of DeploymentVersionLinkedJiraIssue to remove
- Returns:
- number of deleted DeploymentVersionLinkedJiraIssue records
findJiraIssueLinksForDeploymentVersion
@NotNull
public List<MutableDeploymentVersionLinkedJiraIssue> findJiraIssueLinksForDeploymentVersion(long deploymentVersionId)
- Specified by:
findJiraIssueLinksForDeploymentVersion
in interface DeploymentVersionLinkedJiraIssueDao
- Returns:
- list of all JIRA issues associated with a deployment version
findJiraIssueKeysForProject
@NotNull
public List<String> findJiraIssueKeysForProject(long deploymentProjectId)
- Specified by:
findJiraIssueKeysForProject
in interface DeploymentVersionLinkedJiraIssueDao
- Returns:
- list of all JIRA issue keys associated with a project
getJiraIssueCountForDeploymentVersion
public int getJiraIssueCountForDeploymentVersion(long deploymentVersionId)
- Specified by:
getJiraIssueCountForDeploymentVersion
in interface DeploymentVersionLinkedJiraIssueDao
- Returns:
- count of all JIRA issues associated with a deployment version
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.