com.atlassian.bamboo.build
Interface BuildDao

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

public interface BuildDao
extends BambooObjectDao


Method Summary
 java.util.Set<Build> filterFavouritedBuilds(java.util.Collection<Build> builds, com.atlassian.user.User user)
          Deprecated. 
 java.util.Collection<Build> getAllBuilds()
          Returns all builds in the system
 Build getBuildByKey(java.lang.String key)
          Returns a Build object that matches the key.
 Build getBuildByName(java.lang.String buildName)
           
 Build getBuildByProjectAndName(java.lang.String projectKey, java.lang.String buildName)
           
 java.util.Collection<Build> getBuildsByProject(Project project)
           
 java.util.Collection<Build> getBuildsForDeletion()
          Returns all builds marked for deletion.
 int getPlanCount()
          Return number of plans that currently exist in the database
 boolean isExistingBuildKey(java.lang.String projectKey, java.lang.String buildKey)
           
 boolean isExistingBuildName(java.lang.String projectKey, java.lang.String buildName)
           
 void saveBuild(Build build)
           
 void saveBuildAndDefinition(Build build)
           
 void updateBuild(Build build)
           
 
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

getBuildByKey

@Nullable
Build getBuildByKey(java.lang.String key)
Returns a Build object that matches the key.

Parameters:
key - - must not be null
Returns:
the Build. Null if not founf

getAllBuilds

@NotNull
java.util.Collection<Build> getAllBuilds()
Returns all builds in the system

Returns:
Collections.EMPTY_LIST

getBuildsForDeletion

@NotNull
java.util.Collection<Build> getBuildsForDeletion()
Returns all builds marked for deletion.

Returns:
List of Build. If no results Collections.EMPTY_LIST

updateBuild

void updateBuild(Build build)

getBuildByName

Build getBuildByName(java.lang.String buildName)

saveBuildAndDefinition

void saveBuildAndDefinition(Build build)

saveBuild

void saveBuild(Build build)

isExistingBuildName

boolean isExistingBuildName(java.lang.String projectKey,
                            java.lang.String buildName)

getBuildByProjectAndName

@Nullable
Build getBuildByProjectAndName(java.lang.String projectKey,
                                        java.lang.String buildName)

getBuildsByProject

java.util.Collection<Build> getBuildsByProject(Project project)

isExistingBuildKey

boolean isExistingBuildKey(java.lang.String projectKey,
                           java.lang.String buildKey)

getPlanCount

int getPlanCount()
Return number of plans that currently exist in the database

Returns:
number of plans that currently exist in the database

filterFavouritedBuilds

@Deprecated
java.util.Set<Build> filterFavouritedBuilds(@NotNull
                                                       java.util.Collection<Build> builds,
                                                       @NotNull
                                                       com.atlassian.user.User user)
Deprecated. 

Return a collection of Builds that are a subset of the given Builds collection that are favourited by the User

Parameters:
builds -
user -
Returns:
favoritedBuilds


Copyright © 2010 Atlassian. All Rights Reserved.