com.atlassian.bamboo.plan
Interface PlanDao

All Superinterfaces:
BambooObjectDao, bucket.core.persistence.ObjectDao
All Known Implementing Classes:
PlanHibernateDao

public interface PlanDao
extends BambooObjectDao

DAO Manager for Plan


Method Summary
 java.util.Collection<Plan> getAllPlans()
          Return all Plans
 Plan getPlanById(long id)
          Return a Plan that matches the given id
 Plan getPlanByKey(java.lang.String planKey)
          Return a Plan that matches the given key
 void save(Plan plan)
          Save the specified Plan
 
Methods inherited from interface com.atlassian.bamboo.persistence.BambooObjectDao
findById
 
Methods inherited from interface bucket.core.persistence.ObjectDao
findAll, findAllSorted, getPersistentClass, refresh, remove, replicate, save, saveRaw
 

Method Detail

getPlanById

@Nullable
Plan getPlanById(long id)
Return a Plan that matches the given id

Parameters:
id -
Returns:
plan

getPlanByKey

@Nullable
Plan getPlanByKey(@NotNull
                           java.lang.String planKey)
Return a Plan that matches the given key

Parameters:
planKey -
Returns:
plan

getAllPlans

@NotNull
java.util.Collection<Plan> getAllPlans()
Return all Plans

Returns:
plans

save

void save(@NotNull
          Plan plan)
Save the specified Plan

Parameters:
plan -


Copyright © 2010 Atlassian. All Rights Reserved.