org.jasig.portlet.courses.dao
Class CachingCoursesDao
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CachingCoursesDao
public CachingCoursesDao()
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.