Class ArtifactSubscriptionHibernateDao
- java.lang.Object
-
- org.springframework.dao.support.DaoSupport
-
- org.springframework.orm.hibernate5.support.HibernateDaoSupport
-
- com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
-
- com.atlassian.bamboo.persistence3.BambooHibernateObjectDao<ArtifactSubscription>
-
- com.atlassian.bamboo.plan.artifact.ArtifactSubscriptionHibernateDao
-
- All Implemented Interfaces:
BambooObjectDao<ArtifactSubscription>
,ArtifactSubscriptionDao
,org.springframework.beans.factory.InitializingBean
public class ArtifactSubscriptionHibernateDao extends BambooHibernateObjectDao<ArtifactSubscription> implements ArtifactSubscriptionDao
-
-
Constructor Summary
Constructors Constructor Description ArtifactSubscriptionHibernateDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
countSubscriptionsOfArtifact(long artifactDefinitionId)
@NotNull Collection<? extends ArtifactSubscription>
findAll()
Find all artifact subscriptions@NotNull List<ArtifactSubscription>
findArtifactSubscriptionOfPlan(@NotNull PlanIdentifier plan)
Get list of artifact subscriptions associated with a planvoid
removeArtifactSubscriptions(@NotNull Collection<ArtifactSubscription> artifactSubscriptions)
Remove all artifact subscriptions in the collection.void
removeArtifactSubscriptionsOfPlan(@NotNull PlanIdentifier planIdentifier)
Remove all artifact subscriptions for a plan-
Methods inherited from class com.atlassian.bamboo.persistence3.BambooHibernateObjectDao
convertSearchTermToLikeExpression, countAll, countWithRestriction, delete, deleteAll, executeCountQuery, findAll, findById, merge, save, saveAll
-
Methods inherited from class com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
getCacheAwareHibernateTemplate
-
Methods inherited from class org.springframework.orm.hibernate5.support.HibernateDaoSupport
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectDao
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
-
-
-
-
Method Detail
-
findAll
@NotNull public @NotNull Collection<? extends ArtifactSubscription> findAll()
Description copied from interface:ArtifactSubscriptionDao
Find all artifact subscriptions- Specified by:
findAll
in interfaceArtifactSubscriptionDao
- Returns:
- Collection of all artifact subscriptions
-
findArtifactSubscriptionOfPlan
@NotNull public @NotNull List<ArtifactSubscription> findArtifactSubscriptionOfPlan(@NotNull @NotNull PlanIdentifier plan)
Description copied from interface:ArtifactSubscriptionDao
Get list of artifact subscriptions associated with a plan- Specified by:
findArtifactSubscriptionOfPlan
in interfaceArtifactSubscriptionDao
- Parameters:
plan
- plan which associated artifact definitions should be retrieved- Returns:
- list of artifact subscriptions
-
removeArtifactSubscriptions
public void removeArtifactSubscriptions(@NotNull @NotNull Collection<ArtifactSubscription> artifactSubscriptions)
Description copied from interface:ArtifactSubscriptionDao
Remove all artifact subscriptions in the collection.- Specified by:
removeArtifactSubscriptions
in interfaceArtifactSubscriptionDao
- Parameters:
artifactSubscriptions
- collection ofArtifactSubscription
to be removed
-
removeArtifactSubscriptionsOfPlan
public void removeArtifactSubscriptionsOfPlan(@NotNull @NotNull PlanIdentifier planIdentifier)
Description copied from interface:ArtifactSubscriptionDao
Remove all artifact subscriptions for a plan- Specified by:
removeArtifactSubscriptionsOfPlan
in interfaceArtifactSubscriptionDao
-
countSubscriptionsOfArtifact
public long countSubscriptionsOfArtifact(long artifactDefinitionId)
- Specified by:
countSubscriptionsOfArtifact
in interfaceArtifactSubscriptionDao
- Returns:
- amount of subscriptions existing for an artifact
-
-