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
 void addChildBuild(Build build, java.lang.String childBuildKey)
           
 java.util.Collection 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 getBuildsByProject(Project project)
           
 java.util.Collection getBuildsForDeletion()
          Returns all builds marked for deletion.
 boolean isExistingBuildKey(java.lang.String projectKey, java.lang.String buildKey)
           
 boolean isExistingBuildName(java.lang.String projectKey, java.lang.String buildName)
           
 int retrieveNextBuildNumber(java.lang.String planKey)
           
 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

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

java.util.Collection getAllBuilds()
Returns all builds in the system

Returns:
Collections.EMPTY_LIST

getBuildsForDeletion

java.util.Collection 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)

retrieveNextBuildNumber

int retrieveNextBuildNumber(java.lang.String planKey)

isExistingBuildName

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

getBuildByProjectAndName

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

getBuildsByProject

java.util.Collection getBuildsByProject(Project project)

isExistingBuildKey

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

addChildBuild

void addChildBuild(Build build,
                   java.lang.String childBuildKey)


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.