org.jasig.portlet.courses.dao
Class CachingCoursesDao

java.lang.Object
  extended by org.jasig.portlet.courses.dao.CachingCoursesDao
All Implemented Interfaces:
ICoursesDao

public final class CachingCoursesDao
extends Object
implements ICoursesDao

This ICoursesDao implementation decorates one or more other DAOs and adds caching features to them. Whatever data the underlying DAOs provide will be stored in cache according to parameters specified in ehcache.xml. All caching is per-user.

Author:
awills

Constructor Summary
CachingCoursesDao()
           
 
Method Summary
 CoursesByTerm getCoursesByTerm(javax.portlet.PortletRequest req, String termCode)
          Get courses for a term for the current user
 TermList getTermList(javax.portlet.PortletRequest req)
          Get a term list for the current user
 void setCoursesByTermCache(net.sf.ehcache.Cache coursesByTermCache)
           
 void setEnclosedCoursesDao(ICoursesDao enclosedCoursesDao)
           
 void setTermListCache(net.sf.ehcache.Cache termListCache)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingCoursesDao

public CachingCoursesDao()
Method Detail

setEnclosedCoursesDao

public void setEnclosedCoursesDao(ICoursesDao enclosedCoursesDao)

setTermListCache

public void setTermListCache(net.sf.ehcache.Cache termListCache)

setCoursesByTermCache

public void setCoursesByTermCache(net.sf.ehcache.Cache coursesByTermCache)

getTermList

public TermList getTermList(javax.portlet.PortletRequest req)
Description copied from interface: ICoursesDao
Get a term list for the current user

Specified by:
getTermList in interface ICoursesDao
Returns:

getCoursesByTerm

public CoursesByTerm getCoursesByTerm(javax.portlet.PortletRequest req,
                                      String termCode)
Description copied from interface: ICoursesDao
Get courses for a term for the current user

Specified by:
getCoursesByTerm in interface ICoursesDao
Returns:


Copyright © 2012 Jasig. All Rights Reserved.