org.jtoolkit.essence.data
Enum Store.ReadMode

java.lang.Object
  extended by java.lang.Enum<Store.ReadMode>
      extended by org.jtoolkit.essence.data.Store.ReadMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Store.ReadMode>
Enclosing interface:
Store<K,V>

public static enum Store.ReadMode
extends java.lang.Enum<Store.ReadMode>

How is the data read.


Enum Constant Summary
ALL
          All data is read into memory.
ANY
          A default mode for the store is chosen.
MINIMAL
          Only the minimum of data is read to perform each operation.
NONE
          Data is not read from the persisted store.
 
Method Summary
static Store.ReadMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Store.ReadMode[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ANY

public static final Store.ReadMode ANY
A default mode for the store is chosen. All Stores support this mode.


NONE

public static final Store.ReadMode NONE
Data is not read from the persisted store. This can mean the store is truncated or only new data is visable.


ALL

public static final Store.ReadMode ALL
All data is read into memory.


MINIMAL

public static final Store.ReadMode MINIMAL
Only the minimum of data is read to perform each operation.

Method Detail

values

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

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

valueOf

public static Store.ReadMode 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


Copyright © Peter Lawrey. All Rights Reserved.