public class ArtifactSubscriptionHibernateDao extends BambooHibernateObjectDao<ArtifactSubscription> implements ArtifactSubscriptionDao
Constructor and Description |
---|
ArtifactSubscriptionHibernateDao() |
Modifier and Type | Method and Description |
---|---|
long |
countSubscriptionsOfArtifact(long artifactDefinitionId) |
Collection<? extends ArtifactSubscription> |
findAll()
Find all artifact subscriptions
|
List<ArtifactSubscription> |
findArtifactSubscriptionOfPlan(PlanIdentifier plan)
Get list of artifact subscriptions associated with a plan
|
countAll, countWithRestriction, delete, deleteAll, executeCountQuery, findAll, findById, merge, save, saveAll
getCacheAwareHibernateTemplate
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
@NotNull public Collection<? extends ArtifactSubscription> findAll()
ArtifactSubscriptionDao
findAll
in interface ArtifactSubscriptionDao
@NotNull public List<ArtifactSubscription> findArtifactSubscriptionOfPlan(@NotNull PlanIdentifier plan)
ArtifactSubscriptionDao
findArtifactSubscriptionOfPlan
in interface ArtifactSubscriptionDao
plan
- plan which associated artifact definitions should be retrievedpublic long countSubscriptionsOfArtifact(long artifactDefinitionId)
countSubscriptionsOfArtifact
in interface ArtifactSubscriptionDao
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.