com.sibvisions.rad.model.remote
Enum RemoteDataSource.MetaDataCacheRole

java.lang.Object
  extended by java.lang.Enum<RemoteDataSource.MetaDataCacheRole>
      extended by com.sibvisions.rad.model.remote.RemoteDataSource.MetaDataCacheRole
All Implemented Interfaces:
Serializable, Comparable<RemoteDataSource.MetaDataCacheRole>
Enclosing class:
RemoteDataSource

public static enum RemoteDataSource.MetaDataCacheRole
extends Enum<RemoteDataSource.MetaDataCacheRole>

The meta data cache roles.


Enum Constant Summary
DataSource
          Cache per data source instance.
Global
          Global caching, over all data source.
Off
          No caching of meta data.
 
Method Summary
static RemoteDataSource.MetaDataCacheRole resolve(String pName)
          Resolves the cache role specified by a string.
static RemoteDataSource.MetaDataCacheRole valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RemoteDataSource.MetaDataCacheRole[] 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

Global

public static final RemoteDataSource.MetaDataCacheRole Global
Global caching, over all data source.


DataSource

public static final RemoteDataSource.MetaDataCacheRole DataSource
Cache per data source instance.


Off

public static final RemoteDataSource.MetaDataCacheRole Off
No caching of meta data.

Method Detail

values

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

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

valueOf

public static RemoteDataSource.MetaDataCacheRole 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 RemoteDataSource.MetaDataCacheRole resolve(String pName)
Resolves the cache role specified by a string. The detection is case insensitive. It's possible to resolve GLOBAL as Global.

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


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.