org.telscenter.sail.webapp.dao.brainstorm
Interface BrainstormDao<T extends Brainstorm>

All Superinterfaces:
SimpleDao<T>
All Known Implementing Classes:
HibernateBrainstormDao

public interface BrainstormDao<T extends Brainstorm>
extends SimpleDao<T>

Dao for Brainstorms

Version:
$Id$
Author:
Hiroki Terashima

Method Summary
 Set<Answer> getAnswersByBrainstormId(Long id)
          Retrieves Answers that are associated with a Brainstorm with the given id
 Brainstorm retrieveByAnswer(Answer answer)
          Looks up Brainstorm that contains the specified Answer.
 Set<Brainstorm> retrieveByProjectAndParentId(Project project, Long parentBrainstormId)
          Looks up Brainstorms that are used by the specified project and is not being used in a run.
 Set<Brainstorm> retrieveByRun(Run run)
          Looks up Brainstorms that are used in the specified Run
 Brainstorm retrieveByRunIdAndParentId(Long runId, Long parentBrainstormId)
          Looks up Brainstorms that are used in the specified Run
 
Methods inherited from interface net.sf.sail.webapp.dao.SimpleDao
delete, getById, getList, save
 

Method Detail

retrieveByAnswer

Brainstorm retrieveByAnswer(Answer answer)
Looks up Brainstorm that contains the specified Answer.

Parameters:
answer -
Returns:

retrieveByRun

Set<Brainstorm> retrieveByRun(Run run)
Looks up Brainstorms that are used in the specified Run

Parameters:
run -
Returns:

retrieveByRunIdAndParentId

Brainstorm retrieveByRunIdAndParentId(Long runId,
                                      Long parentBrainstormId)
Looks up Brainstorms that are used in the specified Run

Parameters:
run -
Returns:

retrieveByProjectAndParentId

Set<Brainstorm> retrieveByProjectAndParentId(Project project,
                                             Long parentBrainstormId)
Looks up Brainstorms that are used by the specified project and is not being used in a run.

Parameters:
run -
Returns:

getAnswersByBrainstormId

Set<Answer> getAnswersByBrainstormId(Long id)
Retrieves Answers that are associated with a Brainstorm with the given id

Parameters:
Long - id
Returns:
Set


Copyright © 2012. All Rights Reserved.