org.itracker.persistence.dao
Interface ComponentDAO

All Superinterfaces:
BaseDAO<Component>
All Known Implementing Classes:
ComponentDAOImpl

public interface ComponentDAO
extends BaseDAO<Component>

Component Data Access Object interface.

Author:
Johnny

Method Summary
 Component findById(Integer componentId)
          Finds the component with the given ID.
 List<Component> findByProject(Integer projectId)
          Finds all components of a given project.
 
Methods inherited from interface org.itracker.persistence.dao.BaseDAO
delete, detach, merge, refresh, save, saveOrUpdate
 

Method Detail

findById

Component findById(Integer componentId)
Finds the component with the given ID.

Parameters:
componentId - ID of the component to retrieve
Returns:
component with the given ID or null if none exists

findByProject

List<Component> findByProject(Integer projectId)
Finds all components of a given project.

Parameters:
projectId - ID of the project of which to retrieve all components
Returns:
list of components, in unspecified order


Copyright © 2002-2012 itracker. All Rights Reserved.