org.itracker.persistence.dao
Class VersionDAOImpl

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<Version>
              extended by org.itracker.persistence.dao.VersionDAOImpl
All Implemented Interfaces:
BaseDAO<Version>, VersionDAO, org.springframework.beans.factory.InitializingBean

public class VersionDAOImpl
extends BaseHibernateDAOImpl<Version>
implements VersionDAO

Hibernate implementation of VersionDAO interface


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
VersionDAOImpl()
           
 
Method Summary
 Version findByPrimaryKey(Integer versionId)
          find Version by id
 List<Version> findByProjectId(Integer projectId)
          Finds Versions by a project id and returns them as a Collection.
 
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

VersionDAOImpl

public VersionDAOImpl()
Method Detail

findByPrimaryKey

public Version findByPrimaryKey(Integer versionId)
find Version by id

Specified by:
findByPrimaryKey in interface VersionDAO
Parameters:
versionId - id of the Version to find
Returns:
Version found

findByProjectId

public List<Version> findByProjectId(Integer projectId)
Finds Versions by a project id and returns them as a Collection.

Specified by:
findByProjectId in interface VersionDAO
Parameters:
projectId - id of the parent Project
Returns:
a Collection containing the Versions found


Copyright © 2002-2012 itracker. All Rights Reserved.