oracle.dmt.odm
Class DataType

java.lang.Object
  |
  +--oracle.dmt.odm.Enum
        |
        +--oracle.dmt.odm.DataType
All Implemented Interfaces:
java.io.Serializable

public class DataType
extends Enum

The enumeration class DataType is used to specify whether the data type of an attribute is integer, float, character, or string.

Since:
9.0.1
See Also:
Serialized Form

Field Summary
TypeField
static DataType booleanType
          Boolean data type
static DataType charType
          Character data type
static DataType floatType
          Float data type
static DataType intType
          Integer data type
static DataType stringType
          String data type
 
Method Summary
TypeMethod
static DataType getInstance(int id)
          Returns DataType enumeration object corresponding to the specified ID.
static DataType getInstance(java.lang.String name)
          Returns DataType enumeration object corresponding to the specified name.
static DataType[] list()
          Returns list of all DataType enumerations defined.
static java.lang.String[] listNames()
          Returns list the names of all DataType enumerations defined.
 
Methods inherited from class oracle.dmt.odm.Enum
getEnum, getID, isEqual
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

intType

public static final DataType intType
Integer data type

floatType

public static final DataType floatType
Float data type

charType

public static final DataType charType
Character data type

stringType

public static final DataType stringType
String data type

booleanType

public static final DataType booleanType
Boolean data type
Method Detail

listNames

public static java.lang.String[] listNames()
Returns list the names of all DataType enumerations defined.
Returns:
String[]

list

public static DataType[] list()
Returns list of all DataType enumerations defined.
Returns:
DataType[]

getInstance

public static DataType getInstance(java.lang.String name)
Returns DataType enumeration object corresponding to the specified name.
Parameters:
name - data type name (int, float, char, string, boolean)
Returns:
DataType, returns null if there is no enum for the name.

getInstance

public static DataType getInstance(int id)
Returns DataType enumeration object corresponding to the specified ID.
Parameters:
id - (0, 1, 2, 3, 4)
Returns:
DataType, returns null if there is no enum for the id.