com.simba.dsi.dataengine.utilities
Enum Nullable

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

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

A Nullable value is used to indicate the nullability of a column.


Enum Constant Summary
NO_NULLS
          Indicates that the column may not hold NULL values.
NULLABLE
          Indicates that the column may hold NULL values.
UNKNOWN
          Indicates that it is not known whether or not the column may hold NULL values.
 
Method Summary
static Nullable getEnumByValue(int value)
          Get the Nullable that matches the input value.
 int getIntValue()
          Get the The Nullable number.
 java.lang.String isNullable()
          Get a string representing nullability status.
static Nullable valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Nullable[] 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

NO_NULLS

public static final Nullable NO_NULLS
Indicates that the column may not hold NULL values.


NULLABLE

public static final Nullable NULLABLE
Indicates that the column may hold NULL values.


UNKNOWN

public static final Nullable UNKNOWN
Indicates that it is not known whether or not the column may hold NULL values.

Method Detail

values

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

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

valueOf

public static Nullable 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 Nullable getEnumByValue(int value)
Get the Nullable that matches the input value. An unknown input will result in a null Nullable being returned.

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

getIntValue

public int getIntValue()
Get the The Nullable number.

Returns:
Nullable number.

isNullable

public java.lang.String isNullable()
Get a string representing nullability status.

Returns:
Nullability status.


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