com.germinus.merlin.dao
Class CourseDaoJpa

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by com.germinus.merlin.dao.GenericDaoHibernate<Course,java.io.Serializable>
              extended by com.germinus.merlin.dao.CourseDaoJpa
All Implemented Interfaces:
ICourseDao, IGenericDao<Course,java.io.Serializable>, org.springframework.beans.factory.InitializingBean

public class CourseDaoJpa
extends GenericDaoHibernate<Course,java.io.Serializable>
implements ICourseDao


Field Summary
 
Fields inherited from class com.germinus.merlin.dao.GenericDaoHibernate
log
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
CourseDaoJpa(java.lang.Class<Course> persistentClass)
           
 
Method Summary
 void deleteObject(java.lang.Object object)
           
 Course getCourseByName(java.lang.String coursename)
          Gets role information based on rolename
 void removeAssignment(long assignmentid)
           
 void removeCourse(long groupId)
          Removes a role from the database by name
 void update(java.lang.Object obj)
           
 
Methods inherited from class com.germinus.merlin.dao.GenericDaoHibernate
exists, get, getAll, remove, save
 
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 com.germinus.merlin.dao.IGenericDao
exists, get, getAll, remove, save
 

Constructor Detail

CourseDaoJpa

public CourseDaoJpa(java.lang.Class<Course> persistentClass)
Method Detail

getCourseByName

public Course getCourseByName(java.lang.String coursename)
Description copied from interface: ICourseDao
Gets role information based on rolename

Specified by:
getCourseByName in interface ICourseDao
Returns:
populated role object

removeCourse

public void removeCourse(long groupId)
Description copied from interface: ICourseDao
Removes a role from the database by name

Specified by:
removeCourse in interface ICourseDao

removeAssignment

public void removeAssignment(long assignmentid)
Specified by:
removeAssignment in interface ICourseDao

deleteObject

public void deleteObject(java.lang.Object object)
Specified by:
deleteObject in interface ICourseDao

update

public void update(java.lang.Object obj)
Specified by:
update in interface ICourseDao


Copyright © 2008. All Rights Reserved.