edu.jhu.tmaj.beans.cache
Enum CacheableBean

java.lang.Object
  extended by java.lang.Enum<CacheableBean>
      extended by edu.jhu.tmaj.beans.cache.CacheableBean
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CacheableBean>

public enum CacheableBean
extends java.lang.Enum<CacheableBean>

Any JBean whose records may be cached in CachedBeans. For example, the user might want a list of all the ArrayBlocks in TMAJ. We don't want to have to query the server each time this request is made.


Enum Constant Summary
ARRAY_BLOCKS
           
ARRAY_SLIDES
           
IA_SESSIONS
           
PAPERS
           
PROJECTS
           
PROTOCOLS
           
SCANS
           
SESSIONS
           
USERS
           
 
Method Summary
(package private)  JBean getBean()
           
static CacheableBean getInstance(JBean foreignBean)
           
static CacheableBean valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CacheableBean[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ARRAY_BLOCKS

public static final CacheableBean ARRAY_BLOCKS

ARRAY_SLIDES

public static final CacheableBean ARRAY_SLIDES

IA_SESSIONS

public static final CacheableBean IA_SESSIONS

PAPERS

public static final CacheableBean PAPERS

PROJECTS

public static final CacheableBean PROJECTS

PROTOCOLS

public static final CacheableBean PROTOCOLS

SCANS

public static final CacheableBean SCANS

SESSIONS

public static final CacheableBean SESSIONS

USERS

public static final CacheableBean USERS
Method Detail

values

public static CacheableBean[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (CacheableBean c : CacheableBean.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CacheableBean valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getBean

JBean getBean()

getInstance

public static CacheableBean getInstance(JBean foreignBean)