com.sparsity.dex.gdb
Enum DataType

java.lang.Object
  extended by java.lang.Enum<DataType>
      extended by com.sparsity.dex.gdb.DataType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DataType>

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

Data type (domain) enumeration.

Author:
Sparsity Technologies http://www.sparsity-technologies.com

Enum Constant Summary
Boolean
          Boolean data type.
Double
          64-bit signed double data type.
Integer
          32-bit signed integer data type.
Long
          64-bit signed integer data type.
OID
          Object identifier (OID) data type.
String
          Unicode string data type.
Text
          Large unicode character object (CLOB) data type.
Timestamp
          Distance from Epoch (UTC) time in milliseconds precision.
 
Method Summary
static DataType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DataType[] 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

Boolean

public static final DataType Boolean
Boolean data type.


Integer

public static final DataType Integer
32-bit signed integer data type.


Long

public static final DataType Long
64-bit signed integer data type.


Double

public static final DataType Double
64-bit signed double data type.


Timestamp

public static final DataType Timestamp
Distance from Epoch (UTC) time in milliseconds precision.

It just works properly with timestamps in the range ['1970-01-01 00:00:01' UTC, '2038-01-19 03:14:07' UTC].


String

public static final DataType String
Unicode string data type.

2048 characters maximum length.


Text

public static final DataType Text
Large unicode character object (CLOB) data type.

TextStream


OID

public static final DataType OID
Object identifier (OID) data type.

Method Detail

values

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

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

valueOf

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