com.atlassian.bamboo.deployments.versions.persistence.issues
Class DeploymentVersionLinkedJiraIssueDaoImpl

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
              extended by 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
DeploymentVersionLinkedJiraIssueDaoImpl(TransactionAndHibernateTemplate transactionTemplate)
           
 
Method Summary
 int delete(DeploymentVersionDeletionAdapter deletionAdapter)
          Delete DeploymentVersionLinkedJiraIssue records limited by DeletionSQLAdapter.getInClause().
 List<String> findJiraIssueKeysForProject(long deploymentProjectId)
           
 List<MutableDeploymentVersionLinkedJiraIssue> findJiraIssueLinksForDeploymentVersion(long deploymentVersionId)
           
 int getJiraIssueCountForDeploymentVersion(long deploymentVersionId)
           
 void saveAll(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.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
 

Constructor Detail

DeploymentVersionLinkedJiraIssueDaoImpl

public DeploymentVersionLinkedJiraIssueDaoImpl(TransactionAndHibernateTemplate transactionTemplate)
Method Detail

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.