com.simba.dsi.dataengine.utilities
Enum Updatable

java.lang.Object
  extended by java.lang.Enum<Updatable>
      extended by com.simba.dsi.dataengine.utilities.Updatable
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Updatable>

public enum Updatable
extends java.lang.Enum<Updatable>

An Updatable is used to indicate the writeability of a column.


Enum Constant Summary
READ_ONLY
          Indicates that the column is read-only.
UNKNOWN
          Indicates that it is not known whether the column is updatable or not.
WRITE
          Indicates that the column is read-write.
 
Method Summary
static Updatable getEnumByValue(int value)
          Get the Updatable that matches the input value.
 int getIntValue()
          Get the The Updatable number.
static Updatable valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Updatable[] 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

READ_ONLY

public static final Updatable READ_ONLY
Indicates that the column is read-only.


WRITE

public static final Updatable WRITE
Indicates that the column is read-write.


UNKNOWN

public static final Updatable UNKNOWN
Indicates that it is not known whether the column is updatable or not.

Method Detail

values

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

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

valueOf

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

getEnumByValue

public static Updatable getEnumByValue(int value)
Get the Updatable that matches the input value. An unknown input will result in a null Updatable being returned.

Parameters:
value - The value of the Updatable.
Returns:
The Updatable that matches the value.

getIntValue

public int getIntValue()
Get the The Updatable number.

Returns:
Updatable number.


Copyright © 2006-2014 Simba Technologies Incorporated. All Rights Reserved.