public class DeploymentVersionVcsChangesetDaoImpl extends StatelessSessionHibernateDaoSupport implements DeploymentVersionVcsChangesetDao
Constructor and Description |
---|
DeploymentVersionVcsChangesetDaoImpl(TransactionAndHibernateTemplate transactionTemplate) |
Modifier and Type | Method and Description |
---|---|
int |
delete(DeploymentVersionDeletionAdapter deletionAdapter)
Delete
- DEPLOYMENT_VERSION_CHANGESET (manual, JDBC)
- DEPLOYMENT_VERSION_COMMIT (manual, JDBC)
|
void |
delete(MutableDeploymentVersionVcsChangeset deploymentVersion) |
List<MutableDeploymentVersionVcsChangeset> |
getChangesetsForDeploymentVersion(long deploymentVersionId) |
Long |
getRepositoryDataIdForChangeset(long changesetId) |
long |
getSkippedCommitsCountForVersion(long deploymentVersionId) |
void |
save(MutableDeploymentVersionVcsChangeset deploymentVersion)
MutableDeploymentVersionVcsCommit members of
MutableDeploymentVersionVcsChangeset.getCommits() ()} are persisted in a cascade |
void |
saveAll(Collection<MutableDeploymentVersionVcsChangeset> changesets) |
getCacheAwareHibernateTemplate
public DeploymentVersionVcsChangesetDaoImpl(TransactionAndHibernateTemplate transactionTemplate)
public void save(@NotNull MutableDeploymentVersionVcsChangeset deploymentVersion)
MutableDeploymentVersionVcsChangeset.getCommits()
()} are persisted in a cascadesave
in interface DeploymentVersionVcsChangesetDao
deploymentVersion
- MutableDeploymentVersion to be persistedpublic void saveAll(@NotNull Collection<MutableDeploymentVersionVcsChangeset> changesets)
saveAll
in interface DeploymentVersionVcsChangesetDao
public void delete(MutableDeploymentVersionVcsChangeset deploymentVersion)
delete
in interface DeploymentVersionVcsChangesetDao
public int delete(@NotNull DeploymentVersionDeletionAdapter deletionAdapter)
delete
in interface DeploymentVersionVcsChangesetDao
deletionAdapter
- DeletionSQLAdapter.getInClause()
should provide range of DeploymentVersionspublic List<MutableDeploymentVersionVcsChangeset> getChangesetsForDeploymentVersion(long deploymentVersionId)
getChangesetsForDeploymentVersion
in interface DeploymentVersionVcsChangesetDao
DeploymentVersion
@Nullable public Long getRepositoryDataIdForChangeset(long changesetId)
getRepositoryDataIdForChangeset
in interface DeploymentVersionVcsChangesetDao
RepositoryDataEntity
associated with this changeset or null if changeset does not exist.public long getSkippedCommitsCountForVersion(long deploymentVersionId)
getSkippedCommitsCountForVersion
in interface DeploymentVersionVcsChangesetDao
DeploymentVersionVcsChangeset
associated with a DeploymentVersion
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.