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