public final class CachingCoursesDao extends Object implements ICoursesDao
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.| Constructor and Description |
|---|
CachingCoursesDao() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public void setEnclosedCoursesDao(ICoursesDao enclosedCoursesDao)
public void setTermListCache(net.sf.ehcache.Cache termListCache)
public void setCoursesByTermCache(net.sf.ehcache.Cache coursesByTermCache)
public TermList getTermList(javax.portlet.PortletRequest req)
ICoursesDaogetTermList in interface ICoursesDaopublic CoursesByTerm getCoursesByTerm(javax.portlet.PortletRequest req, String termCode)
ICoursesDaogetCoursesByTerm in interface ICoursesDaoCopyright © 2016 Jasig. All Rights Reserved.