Extension SDK

oracle.jdeveloper.cm.ds.db
Class DataType

java.lang.Object
  |
  +--oracle.jdeveloper.cm.ds.db.DataType

public final class DataType
extends java.lang.Object

DataType - Represents an database data type.

Since:
9.0
This class contains numerous static references to instances of this class representing the ANSI 92 and Oracle 8i data types supported. In addition, there are several static utility methods for obtaining a list of types and obtaining the corresponding data type in the other list.
These are:

Field Summary
static DataType ANSI_CHARACTER
           
static DataType ANSI_CHARACTER_VARYING
           
static DataType ANSI_DATE
           
static DataType ANSI_DATETIME
           
static DataType ANSI_DECIMAL
           
static DataType ANSI_DOUBLE_PRECISION
           
static DataType ANSI_FLOAT
           
static DataType ANSI_INT
           
static DataType ANSI_INTEGER
           
static DataType ANSI_NUMERIC
           
static DataType ANSI_REAL
           
static DataType ANSI_SMALLINT
           
static DataType ANSI_TIME
           
static DataType ORA_BFILE
           
static DataType ORA_BLOB
           
static DataType ORA_CHAR
           
static DataType ORA_CLOB
           
static DataType ORA_DATE
           
static DataType ORA_LONG
           
static DataType ORA_LONG_RAW
           
static DataType ORA_NCHAR
           
static DataType ORA_NCLOB
           
static DataType ORA_NUMBER
           
static DataType ORA_NVARCHAR2
           
static DataType ORA_RAW
           
static DataType ORA_ROWID
           
static DataType ORA_UROWID
           
static DataType ORA_VARCHAR2
           
 
Method Summary
static java.util.List getAnsiDataTypes()
          Returns a list of ANSI data types
static DataType getAnsiForOracle(DataType oraDataType)
          Returns the ANSI data type for given Oracle data type
 long getMaxPrecision()
           
 long getMaxScale()
           
 long getMinScale()
           
 java.lang.String getName()
           
static java.util.List getOracleDataTypes()
          Returns a list of Oracle data types
static DataType getOracleForAnsi(DataType ansiDataType)
          Returns the Oracle data type for given ANSI data type
 boolean isAllowPrecision()
           
 boolean isAllowScale()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ANSI_CHARACTER

public static final DataType ANSI_CHARACTER

ANSI_CHARACTER_VARYING

public static final DataType ANSI_CHARACTER_VARYING

ANSI_NUMERIC

public static final DataType ANSI_NUMERIC

ANSI_DECIMAL

public static final DataType ANSI_DECIMAL

ANSI_INTEGER

public static final DataType ANSI_INTEGER

ANSI_INT

public static final DataType ANSI_INT

ANSI_SMALLINT

public static final DataType ANSI_SMALLINT

ANSI_FLOAT

public static final DataType ANSI_FLOAT

ANSI_DOUBLE_PRECISION

public static final DataType ANSI_DOUBLE_PRECISION

ANSI_REAL

public static final DataType ANSI_REAL

ANSI_DATE

public static final DataType ANSI_DATE

ANSI_TIME

public static final DataType ANSI_TIME

ANSI_DATETIME

public static final DataType ANSI_DATETIME

ORA_VARCHAR2

public static final DataType ORA_VARCHAR2

ORA_NVARCHAR2

public static final DataType ORA_NVARCHAR2

ORA_NUMBER

public static final DataType ORA_NUMBER

ORA_LONG

public static final DataType ORA_LONG

ORA_DATE

public static final DataType ORA_DATE

ORA_RAW

public static final DataType ORA_RAW

ORA_LONG_RAW

public static final DataType ORA_LONG_RAW

ORA_ROWID

public static final DataType ORA_ROWID

ORA_UROWID

public static final DataType ORA_UROWID

ORA_CHAR

public static final DataType ORA_CHAR

ORA_NCHAR

public static final DataType ORA_NCHAR

ORA_CLOB

public static final DataType ORA_CLOB

ORA_NCLOB

public static final DataType ORA_NCLOB

ORA_BLOB

public static final DataType ORA_BLOB

ORA_BFILE

public static final DataType ORA_BFILE
Method Detail

getName

public final java.lang.String getName()

isAllowPrecision

public final boolean isAllowPrecision()

isAllowScale

public final boolean isAllowScale()

getMaxPrecision

public final long getMaxPrecision()

getMinScale

public final long getMinScale()

getMaxScale

public final long getMaxScale()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getAnsiDataTypes

public static java.util.List getAnsiDataTypes()
Returns a list of ANSI data types


getOracleDataTypes

public static java.util.List getOracleDataTypes()
Returns a list of Oracle data types


getAnsiForOracle

public static DataType getAnsiForOracle(DataType oraDataType)
Returns the ANSI data type for given Oracle data type


getOracleForAnsi

public static DataType getOracleForAnsi(DataType ansiDataType)
Returns the Oracle data type for given ANSI data type


Extension SDK

 

Copyright ©1997, 2003, Oracle. All rights reserved.