com.atlassian.bamboo.resultsummary.tests
Interface TestsDao

All Superinterfaces:
BambooObjectDao<TestClass>
All Known Implementing Classes:
TestsHibernateDao

public interface TestsDao
extends BambooObjectDao<TestClass>

Dao for retrieving and manipulating Test Objects (e.g TestClass, TestCase)


Method Summary
 long countTestClasses()
          Count all TestClass records
 java.util.Collection<? extends TestClass> findAll()
           
 TestClass findById(long testClassId)
          Find a specific testClass by id
 java.util.List<TestClass> getTestClassesForPlan(Plan plan)
          Retrieve all test classes attached to a specific plan
 long scrollTestClassesForExport(com.google.common.base.Function<TestClass,java.lang.Void> function)
          Scroll through and execute function for each of TestClass records Objects passed to function are not fully initialized.
 
Methods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectDao
delete, deleteAll, executeReturnLong, findAll, findById, save, saveAll
 

Method Detail

findById

@Nullable
TestClass findById(long testClassId)
Find a specific testClass by id

Parameters:
testClassId - of the test class you want to find
Returns:
the testClass corresponding to the id provided.

findAll

@NotNull
java.util.Collection<? extends TestClass> findAll()

getTestClassesForPlan

@NotNull
java.util.List<TestClass> getTestClassesForPlan(Plan plan)
Retrieve all test classes attached to a specific plan

Parameters:
plan - the tests are attached to
Returns:
a list of TestClass attached to a plan.

countTestClasses

long countTestClasses()
Count all TestClass records

Returns:
number of TestClass records

scrollTestClassesForExport

long scrollTestClassesForExport(@NotNull
                                com.google.common.base.Function<TestClass,java.lang.Void> function)
Scroll through and execute function for each of TestClass records Objects passed to function are not fully initialized. Collections are empty and related objects have only id set.

Parameters:
function - function to be executed on each of the TestClass records
Returns:
number of traversed rows


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.