org.jtoolkit.essence.data
Enum Store.StoreType

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

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

How is the Store represented/persisted.


Enum Constant Summary
FILE_SET
          The store is backed by a directory of small binary format files.
JDBC
          The store is backed by a JDBC database.
MEMORY
          Data is volatile and in memory only.
NET
          The store is a proxy for another store in another Container/JVM/machine.
SINGLE_FILE
          The store is backed by a binary format file.
TABS
          The store is backed by a tab seperated file.
 
Method Summary
static Store.StoreType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Store.StoreType[] 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

MEMORY

public static final Store.StoreType MEMORY
Data is volatile and in memory only. Any kind of object is supported. The key type must implement equals() and hashCode() Data can be initialised from the configuration file.


NET

public static final Store.StoreType NET
The store is a proxy for another store in another Container/JVM/machine. DataValues, Datable and Serializable objects are supported.


JDBC

public static final Store.StoreType JDBC
The store is backed by a JDBC database. DataValues are supported. This is the most scalable and reliable solution. Not current supported.


TABS

public static final Store.StoreType TABS
The store is backed by a tab seperated file. DataValues are supported.


SINGLE_FILE

public static final Store.StoreType SINGLE_FILE
The store is backed by a binary format file. DataValues, Datable and Serializable objects are supported.


FILE_SET

public static final Store.StoreType FILE_SET
The store is backed by a directory of small binary format files. DataValues, Datable and Serializable objects are supported. This provides beter update performance and scalability than a single file or tabs could provide.

Method Detail

values

public static final Store.StoreType[] 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.StoreType c : Store.StoreType.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.StoreType 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.