com.atlassian.bamboo.plan.artifact
Class ArtifactSubscriptionHibernateDao

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate.support.HibernateDaoSupport
          extended by com.atlassian.bamboo.persistence3.BambooHibernateObjectDao<ArtifactSubscription>
              extended by 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


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
ArtifactSubscriptionHibernateDao()
           
 
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)
          Remove all artifact subscriptions associated with a plan.
 
Methods inherited from class com.atlassian.bamboo.persistence3.BambooHibernateObjectDao
delete, deleteAll, executeReturnLong, findAll, findById, save, saveAll
 
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
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
delete, deleteAll, executeReturnLong, findAll, findById, save, saveAll
 

Constructor Detail

ArtifactSubscriptionHibernateDao

public ArtifactSubscriptionHibernateDao()
Method Detail

findAll

@NotNull
public java.util.Collection<? extends ArtifactSubscription> findAll()
Description copied from interface: ArtifactSubscriptionDao
Find all artifact subscriptions

Specified by:
findAll in interface ArtifactSubscriptionDao
Returns:
Collection of all artifact subscriptions

findArtifactSubscriptionOfPlan

@NotNull
public java.util.List<ArtifactSubscription> findArtifactSubscriptionOfPlan(@NotNull
                                                                                   Plan plan)
Description copied from interface: ArtifactSubscriptionDao
Get list of artifact subscriptions associated with a plan

Specified by:
findArtifactSubscriptionOfPlan in interface ArtifactSubscriptionDao
Parameters:
plan - plan which associated artifact definitions should be retrieved
Returns:
list of artifact subscriptions

removeArtifactSubscriptionsByPlan

public int removeArtifactSubscriptionsByPlan(@NotNull
                                             Plan plan)
Description copied from interface: ArtifactSubscriptionDao
Remove all artifact subscriptions associated with a plan.

Specified by:
removeArtifactSubscriptionsByPlan in interface ArtifactSubscriptionDao
Parameters:
plan - plan which associated artifact subscriptions should be removed
Returns:
number of removed objects


Copyright © 2012 Atlassian. All Rights Reserved.