Last update: 2011-06-23

org.proteios.io
Enum TablePreferencesConfiguration.Mode

java.lang.Object
  extended by java.lang.Enum<TablePreferencesConfiguration.Mode>
      extended by org.proteios.io.TablePreferencesConfiguration.Mode
All Implemented Interfaces:
Serializable, Comparable<TablePreferencesConfiguration.Mode>
Enclosing class:
TablePreferencesConfiguration

public static enum TablePreferencesConfiguration.Mode
extends Enum<TablePreferencesConfiguration.Mode>

The table preferences mode.


Enum Constant Summary
ALWAYS
          Table preferences always saved.
NEVER
          Table preferences never saved.
USE_BUT_DO_NOT_UPDATE
          Table preferences always saved.
 
Method Summary
static TablePreferencesConfiguration.Mode fromValue(int value)
          Get the TablePreferencesConfiguration.Mode object when you know the integer code.
 int getValue()
          Get the integer value that is used when storing a TablePreferencesConfiguration.Mode to the database.
 String toString()
           
static TablePreferencesConfiguration.Mode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TablePreferencesConfiguration.Mode[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NEVER

public static final TablePreferencesConfiguration.Mode NEVER
Table preferences never saved.


ALWAYS

public static final TablePreferencesConfiguration.Mode ALWAYS
Table preferences always saved.


USE_BUT_DO_NOT_UPDATE

public static final TablePreferencesConfiguration.Mode USE_BUT_DO_NOT_UPDATE
Table preferences always saved.

Method Detail

values

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

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

valueOf

public static TablePreferencesConfiguration.Mode 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

fromValue

public static TablePreferencesConfiguration.Mode fromValue(int value)
Get the TablePreferencesConfiguration.Mode object when you know the integer code.

Parameters:
value - The integer value.
Returns:
The type object or null if the value is unknown

toString

public String toString()
Overrides:
toString in class Enum<TablePreferencesConfiguration.Mode>

getValue

public int getValue()
Get the integer value that is used when storing a TablePreferencesConfiguration.Mode to the database.

Returns:
The integer value of this type

Last update: 2011-06-23