org.itracker.persistence.dao
Interface ProjectDAO

All Superinterfaces:
BaseDAO<Project>
All Known Implementing Classes:
ProjectDAOImpl

public interface ProjectDAO
extends BaseDAO<Project>


Method Summary
 List<Project> findAll()
          Finds all projects.
 List<Project> findAllAvailable()
          Finds all projects that are active or viewable.
 Project findByName(String name)
          Finds a project by name.
 Project findByPrimaryKey(Integer projectId)
          Finds a project by ID.
 List<Project> findByStatus(int status)
          Finds all projects with a given status.
 Date getLastIssueUpdateDate(Integer projectId)
          Returns the projects with id projectId latest modified issues modification date
 
Methods inherited from interface org.itracker.persistence.dao.BaseDAO
delete, detach, merge, refresh, save, saveOrUpdate
 

Method Detail

findByPrimaryKey

Project findByPrimaryKey(Integer projectId)
Finds a project by ID.

Parameters:
projectId - sytem ID
Returns:
project instance or null

findAll

List<Project> findAll()
Finds all projects.

Returns:
list of all existing projects, in unspecified order

findByStatus

List<Project> findByStatus(int status)
Finds all projects with a given status.

Parameters:
status - project status
Returns:
list of projects in unspecified order

findAllAvailable

List<Project> findAllAvailable()
Finds all projects that are active or viewable.

Returns:
list of projects in unspecified order

getLastIssueUpdateDate

Date getLastIssueUpdateDate(Integer projectId)
Returns the projects with id projectId latest modified issues modification date

Parameters:
projectId -
Returns:

findByName

Project findByName(String name)
Finds a project by name.

Parameters:
name - project
Returns:
the project by name or null if it does not exist in database.


Copyright © 2002-2012 itracker. All Rights Reserved.