com.flexive.shared.structure
Enum TypeStorageMode

java.lang.Object
  extended by java.lang.Enum<TypeStorageMode>
      extended by com.flexive.shared.structure.TypeStorageMode
All Implemented Interfaces:
ObjectWithLabel, java.io.Serializable, java.lang.Comparable<TypeStorageMode>

public enum TypeStorageMode
extends java.lang.Enum<TypeStorageMode>
implements java.io.Serializable, ObjectWithLabel

Mode how tables are stored/accessed

Author:
Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)

Enum Constant Summary
External
          External (not by fleXive managed) table
Flat
          One table per type
Hierarchical
          Master/Detail tables to support hierarchies
Memory
          In-memory storage
 
Method Summary
static TypeStorageMode getById(int id)
          Get a TypeStorageMode by its id
 java.lang.String getDescription()
          Getter for the description
 int getId()
          Getter for the internal id
 FxString getLabel()
          Return the localized label of the object.
 boolean isSupported()
          Is this TypeStorageMode supported (yet)?
static TypeStorageMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TypeStorageMode[] 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

Flat

public static final TypeStorageMode Flat
One table per type


Hierarchical

public static final TypeStorageMode Hierarchical
Master/Detail tables to support hierarchies


External

public static final TypeStorageMode External
External (not by fleXive managed) table


Memory

public static final TypeStorageMode Memory
In-memory storage

Method Detail

values

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

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

valueOf

public static TypeStorageMode 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
java.lang.NullPointerException - if the argument is null

getId

public int getId()
Getter for the internal id

Returns:
internal id

getDescription

public java.lang.String getDescription()
Getter for the description

Returns:
description

isSupported

public boolean isSupported()
Is this TypeStorageMode supported (yet)?

Returns:
if this TypeStorageMode is supported

getById

public static TypeStorageMode getById(int id)
                               throws FxNotFoundException
Get a TypeStorageMode by its id

Parameters:
id - id
Returns:
TypeStorageMode
Throws:
FxNotFoundException - on errors

getLabel

public FxString getLabel()
Return the localized label of the object.

Specified by:
getLabel in interface ObjectWithLabel
Returns:
the localized label for the object.