de.fzj.unicore.wsrflite.persistence
Enum LoadSemantics

java.lang.Object
  extended by java.lang.Enum<LoadSemantics>
      extended by de.fzj.unicore.wsrflite.persistence.LoadSemantics
All Implemented Interfaces:
Serializable, Comparable<LoadSemantics>

public enum LoadSemantics
extends Enum<LoadSemantics>

Load semantics specify the behaviour of the persistence layer with respect to loading ws-resources

Author:
schuller

Enum Constant Summary
LOAD_ONCE
          load the WS-Resource into memory, and keep it there for the lifetime of the server Changes to the instance will be persisted to disk
NORMAL
          use the "normal" way of persisting instances: the WS Resource is loaded into memory only for the duration of the request
 
Method Summary
static LoadSemantics valueOf(String name)
          Returns the enum constant of this type with the specified name.
static LoadSemantics[] 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

NORMAL

public static final LoadSemantics NORMAL
use the "normal" way of persisting instances: the WS Resource is loaded into memory only for the duration of the request


LOAD_ONCE

public static final LoadSemantics LOAD_ONCE
load the WS-Resource into memory, and keep it there for the lifetime of the server Changes to the instance will be persisted to disk

Method Detail

values

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

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

valueOf

public static LoadSemantics 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


Copyright © 2010. All Rights Reserved.