com.atlassian.bamboo.plan.artifact
Interface ArtifactSubscriptionDao

All Superinterfaces:
BambooObjectDao<ArtifactSubscription>
All Known Implementing Classes:
ArtifactSubscriptionHibernateDao

public interface ArtifactSubscriptionDao
extends BambooObjectDao<ArtifactSubscription>


Method Summary
 java.util.Collection<? extends ArtifactSubscription> findAll()
          Find all artifact subscriptions
 java.util.List<ArtifactSubscription> findArtifactSubscriptionOfPlan(Plan plan)
          Get list of artifact subscriptions associated with a plan
 int removeArtifactSubscriptionsByPlan(Plan plan)
          Deprecated. since 4.0 without replacement: this method has no effect. Deletion handled by cascades
 
Methods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectDao
delete, deleteAll, executeReturnLong, findAll, findById, save, saveAll
 

Method Detail

findAll

@NotNull
java.util.Collection<? extends ArtifactSubscription> findAll()
Find all artifact subscriptions

Returns:
Collection of all artifact subscriptions

findArtifactSubscriptionOfPlan

@NotNull
java.util.List<ArtifactSubscription> findArtifactSubscriptionOfPlan(@NotNull
                                                                            Plan plan)
Get list of artifact subscriptions associated with a plan

Parameters:
plan - plan which associated artifact definitions should be retrieved
Returns:
list of artifact subscriptions

removeArtifactSubscriptionsByPlan

@Deprecated
int removeArtifactSubscriptionsByPlan(@NotNull
                                                 Plan plan)
Deprecated. since 4.0 without replacement: this method has no effect. Deletion handled by cascades

Remove all artifact subscriptions associated with a plan.

Parameters:
plan - plan which associated artifact subscriptions should be removed
Returns:
number of removed objects


Copyright © 2012 Atlassian. All Rights Reserved.