org.itracker.persistence.dao
Class ProjectDAOImpl

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by org.itracker.persistence.dao.BaseHibernateDAOImpl<Project>
              extended by org.itracker.persistence.dao.ProjectDAOImpl
All Implemented Interfaces:
BaseDAO<Project>, ProjectDAO, org.springframework.beans.factory.InitializingBean

public class ProjectDAOImpl
extends BaseHibernateDAOImpl<Project>
implements ProjectDAO

This is the implementation bean that seems to make the Hibernate request.

Author:
ready

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
ProjectDAOImpl()
           
 
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 class org.itracker.persistence.dao.BaseHibernateDAOImpl
delete, detach, merge, refresh, save, saveOrUpdate
 
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.itracker.persistence.dao.BaseDAO
delete, detach, merge, refresh, save, saveOrUpdate
 

Constructor Detail

ProjectDAOImpl

public ProjectDAOImpl()
Method Detail

findByPrimaryKey

public Project findByPrimaryKey(Integer projectId)
Description copied from interface: ProjectDAO
Finds a project by ID.

Specified by:
findByPrimaryKey in interface ProjectDAO
Parameters:
projectId - sytem ID
Returns:
project instance or null

findAll

public List<Project> findAll()
Description copied from interface: ProjectDAO
Finds all projects.

Specified by:
findAll in interface ProjectDAO
Returns:
list of all existing projects, in unspecified order

findByStatus

public List<Project> findByStatus(int status)
Description copied from interface: ProjectDAO
Finds all projects with a given status.

Specified by:
findByStatus in interface ProjectDAO
Parameters:
status - project status
Returns:
list of projects in unspecified order

findAllAvailable

public List<Project> findAllAvailable()
Description copied from interface: ProjectDAO
Finds all projects that are active or viewable.

Specified by:
findAllAvailable in interface ProjectDAO
Returns:
list of projects in unspecified order

getLastIssueUpdateDate

public Date getLastIssueUpdateDate(Integer projectId)
Description copied from interface: ProjectDAO
Returns the projects with id projectId latest modified issues modification date

Specified by:
getLastIssueUpdateDate in interface ProjectDAO
Returns:

findByName

public Project findByName(String name)
Description copied from interface: ProjectDAO
Finds a project by name.

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


Copyright © 2002-2012 itracker. All Rights Reserved.