edu.jhu.tmaj.beans.cache
Class CachedBeans
java.lang.Object
edu.jhu.tmaj.beans.cache.CachedBeans
public final class CachedBeans
- extends java.lang.Object
Represents a holding class for commonly used Beans. Unlike CachedLookupTables, JBeans hold more
complicated information than a simple lookup table with only two columns. A JBean contains a
method that only returns certain beans depending on which user is logged on, as well as the type
of search that was requested.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getBean
public static JBean getBean(CacheableBean cBean,
java.lang.Integer id)
refreshCache
public static void refreshCache(CacheableBean cBean)
updateCache
public static void updateCache(CacheableBean cBean,
JBean bean)
updateCacheForBean
public static void updateCacheForBean(JBean bean)
getBeanMap
public static java.util.Map<java.lang.Integer,JBean> getBeanMap(CacheableBean cBean)
getFreshBeansList
public static java.util.List<JBean> getFreshBeansList(JBean bean)
- Returns a FRESH List of Beans of type bean based on the request type. This method
actually re-queries the database, so any updates will now be present in this cache. The
server will know based on the user requesting if they need all references or just some of
them.
clear
public static void clear()