org.pm4j.core.pm.annotation
Enum PmCacheCfg.CacheMode

java.lang.Object
  extended by java.lang.Enum<PmCacheCfg.CacheMode>
      extended by org.pm4j.core.pm.annotation.PmCacheCfg.CacheMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PmCacheCfg.CacheMode>
Enclosing class:
PmCacheCfg

public static enum PmCacheCfg.CacheMode
extends java.lang.Enum<PmCacheCfg.CacheMode>


Enum Constant Summary
NOT_SPECIFIED
          Not specified.
OFF
          No caching.
ON
          The value will be cached locally within the PM instance.
REQUEST
          The value will be cached for the life time of a request.
 
Method Summary
static PmCacheCfg.CacheMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PmCacheCfg.CacheMode[] 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

NOT_SPECIFIED

public static final PmCacheCfg.CacheMode NOT_SPECIFIED
Not specified.


OFF

public static final PmCacheCfg.CacheMode OFF
No caching.


ON

public static final PmCacheCfg.CacheMode ON
The value will be cached locally within the PM instance.


REQUEST

public static final PmCacheCfg.CacheMode REQUEST
The value will be cached for the life time of a request.

This option will currently only be considered in the JSF environment. In other cases (rich client) it has the effect of the option OFF.

Method Detail

values

public static PmCacheCfg.CacheMode[] 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 (PmCacheCfg.CacheMode c : PmCacheCfg.CacheMode.values())
    System.out.println(c);

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

valueOf

public static PmCacheCfg.CacheMode 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