org.squashtest.csp.tm.internal.repository
Interface LibraryDao<LIBRARY extends Library<? extends NODE>,NODE extends LibraryNode>

Type Parameters:
LIBRARY - Type of the library entity
NODE - Type of the LibraryNode entities contained by the library.
All Known Subinterfaces:
CampaignLibraryDao, RequirementLibraryDao, TestCaseLibraryDao
All Known Implementing Classes:
HibernateCampaignLibraryDao, HibernateLibraryDao, HibernateRequirementLibraryDao, HibernateTestCaseLibraryDao

public interface LibraryDao<LIBRARY extends Library<? extends NODE>,NODE extends LibraryNode>

Defines a DAO for Library entities.

Author:
Gregory Fouquet

Method Summary
 List<LIBRARY> findAll()
           
 List<NODE> findAllRootContentById(long libraryId)
           
 LIBRARY findById(long id)
           
 LIBRARY findByRootContent(NODE node)
          Finds the library which has the given node in its root content.
 

Method Detail

findAll

List<LIBRARY> findAll()

findAllRootContentById

List<NODE> findAllRootContentById(long libraryId)

findById

LIBRARY findById(long id)

findByRootContent

LIBRARY findByRootContent(NODE node)
Finds the library which has the given node in its root content.

Parameters:
node -
Returns:


Copyright © 2010-2012 Squashtest TM, Squashtest.org. All Rights Reserved.