javax.rad.model
Enum MetaDataCacheOption

java.lang.Object
  extended by java.lang.Enum<MetaDataCacheOption>
      extended by javax.rad.model.MetaDataCacheOption
All Implemented Interfaces:
Serializable, Comparable<MetaDataCacheOption>

public enum MetaDataCacheOption
extends Enum<MetaDataCacheOption>

The MetaDataCacheOption is the enum type for client and server-side metadata cache options.


Enum Constant Summary
Default
          Use default settings (checks global caching option).
Off
          No caching.
On
          Cache meta data (independent of global caching option).
 
Method Summary
static MetaDataCacheOption resolve(String pName)
          Resolves the cache option specified by a string.
static MetaDataCacheOption valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MetaDataCacheOption[] 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

Default

public static final MetaDataCacheOption Default
Use default settings (checks global caching option).


On

public static final MetaDataCacheOption On
Cache meta data (independent of global caching option).


Off

public static final MetaDataCacheOption Off
No caching.

Method Detail

values

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

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

valueOf

public static MetaDataCacheOption valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

resolve

public static MetaDataCacheOption resolve(String pName)
Resolves the cache option specified by a string. The detection is case insensitive. It's possible to resolve DEFAULT as Default.

Parameters:
pName - the option name
Returns:
the cache option
Throws:
IllegalArgumentException - if pName is null or the name is unknown


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.