Oracle Data Mining Java API Reference
10g Release 1 (10.1)

B12276-01

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, string, boolean or unstructured.

The semantics of the value are as follows:

Since:
9.0.1
See Also:
Serialized Form

Field Summary
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
static DataType unstructuredType
          Unstructured data type.

 

Method Summary
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 the list of all DataType enumerations defined.
static java.lang.String[] listNames()
          Returns the list of 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

unstructuredType

public static final DataType unstructuredType
Unstructured data type. This is used for Text data. Some examples of column types which belong to this data type are: BFILE, BLOB etc.
Since:
10.1
Method Detail

listNames

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

list

public static DataType[] list()
Returns the list of all DataType enumerations defined.
Returns:
array of enumeration values for the DataType enumeration

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:
instance of the DataType enumeration object corresponding to the given name, null if there is no enumeration for this name.

getInstance

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

Copyright © 2003 Oracle Corporation. All Rights Reserved.