|
Oracle® OLAP Java API Reference 11g Release 1 (11.1) B28128-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.olapi.syntax.DataType
public final class DataType
An object that represents an Oracle Database data type without precision information. A DataType
has a name and a category. An application gets an instance of this class by using one of the static constants, such as DataType.NUMBER
.
Field Summary | |
---|---|
static int |
ANY_CATEGORY A constant that represents a category for any data type. |
static DataType |
BINARY_DOUBLE A constant that represents the BINARY DOUBLE data type. |
static DataType |
BINARY_FLOAT A constant that represents the BINARY FLOAT data type. |
static DataType |
BLOB A constant that represents the BLOB data type. |
static int |
CASTABLE_TO_NUMBER_CATEGORY A constant that represents a category of data types that are castable to the NUMBER data type. |
static DataType |
CHAR A constant that represents the CHAR data type. |
static DataType |
CLOB A constant that represents the CLOB data type. |
static int |
CLOB_CATEGORY A constant that represents a category of CLOB data types. |
static DataType |
DATE A constant that represents the DATE data type. |
static int |
DATE_CATEGORY A constant that represents a category of DATE data types. |
static int |
DATETIME_CATEGORY A constant that represents a category of DATE and TIMESTAMP data types. |
static int |
DATETIME_OR_INTERVAL_CATEGORY A constant that represents a category of DATE , TIMESTAMP , and INTERVAL data types. |
static DataType |
DECIMAL A constant that represents the DECIMAL data type. |
static DataType |
DS_INTERVAL A constant that represents an INTERVAL DAY TO SECOND data type. |
static DataType |
FLOAT A constant that represents the FLOAT data type. |
static DataType |
INTEGER A constant that represents the INTEGER data type. |
static int |
INTERVAL_CATEGORY A constant that represents a category of INTERVAL data types. |
static int |
LITERAL_CATEGORY A constant that represents a category of literal data types. |
static DataType[] |
LITERAL_DATA_TYPES A constant that represent an array of the literal data types. |
static DataType |
LOB A constant that represents the LOB data type. |
static int |
LOB_CATEGORY A constant that represents a category of LOB data types. |
static DataType |
LONG A constant that represents the LONG data type. |
static int |
LONG_CATEGORY A constant that represents a category of LONG data types. |
static DataType |
NCHAR A constant that represents the NCHAR data type. |
static DataType |
NCLOB A constant that represents the NCLOB data type. |
static DataType |
NULL_TYPE A constant that represents a null data type. |
static DataType |
NUMBER A constant that represents the NUMBER data type. |
static int |
NUMBER_CATEGORY A constant that represents a category of number data types. |
static DataType |
NVARCHAR2 A constant that represents the NVARCHAR2 data type. |
static int |
OBJECT_CATEGORY A constant that represents the object category of data types. |
static DataType |
RAW A constant that represents the RAW data type. |
static int |
RAW_CATEGORY A constant that represents a category of RAW data types. |
static DataType |
ROWID A constant that represents the ROWID data type. |
static int |
ROWID_CATEGORY A constant that represents a category of ROWID data types. |
static int |
TEXT_CATEGORY A constant that represents a category of text literal and CLOB data types. |
static int |
TEXT_LITERAL_CATEGORY A constant that represents category of text data types. |
static int |
TEXT_OR_NUMBER_CATEGORY A constant that represents a category of text literal and NUMBER data types. |
static DataType |
TIMESTAMP A constant that represents the TIMESTAMP data type. |
static int |
TIMESTAMP_CATEGORY A constant that represents a category of TIMESTAMP data types. |
static DataType |
TIMESTAMP_WITH_LOCAL_TIME_ZONE A constant that represents the TIMESTAMP WITH LOCAL TIME ZONE data type. |
static DataType |
TIMESTAMP_WITH_TIME_ZONE A constant that represents the TIMESTAMP WITH TIME ZONE data type. |
static DataType |
VARCHAR2 A constant that represents the VARCHAR2 data type. |
static int |
XML_FORMAT_CATEGORY A constant that represents the XML format category of data types. |
static int |
XML_TYPE_CATEGORY A constant that represents the XML type category of data types. |
static DataType |
XMLFORMAT A constant that represents the XMLFormat data type. |
static DataType |
XMLTYPE A constant that represents the XMLTYPE data type. |
static DataType |
YM_INTERVAL A constant that represents an INTERVAL YEAR TO MONTH data type. |
Method Summary | |
---|---|
static DataType |
getDataType(java.lang.String name) Gets the DataType that has the specified name. |
java.lang.String |
getName() Gets the name of this DataType . |
boolean |
matchesCategory(int category) Indicates whether category of this DataType matches the specified category. |
SQLDataType |
toSQLDataType() Gets the SQLDataType for this DataType . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TEXT_LITERAL_CATEGORY
public static final int NUMBER_CATEGORY
public static final int INTERVAL_CATEGORY
INTERVAL
data types.
public static final int TIMESTAMP_CATEGORY
TIMESTAMP
data types.
public static final int DATE_CATEGORY
DATE
data types.
public static final int OBJECT_CATEGORY
public static final int CLOB_CATEGORY
CLOB
data types.
public static final int LOB_CATEGORY
LOB
data types.
public static final int RAW_CATEGORY
RAW
data types.
public static final int LONG_CATEGORY
LONG
data types.
public static final int ROWID_CATEGORY
ROWID
data types.
public static final int XML_FORMAT_CATEGORY
public static final int XML_TYPE_CATEGORY
public static final int ANY_CATEGORY
public static final int CASTABLE_TO_NUMBER_CATEGORY
NUMBER
data type.
public static final int DATETIME_CATEGORY
DATE
and TIMESTAMP
data types.
public static final int DATETIME_OR_INTERVAL_CATEGORY
DATE
, TIMESTAMP
, and INTERVAL
data types.
public static final int TEXT_CATEGORY
CLOB
data types.
public static final int LITERAL_CATEGORY
public static final int TEXT_OR_NUMBER_CATEGORY
NUMBER
data types.
public static final DataType NULL_TYPE
null
data type.public static final DataType NUMBER
NUMBER
data type.public static final DataType BINARY_FLOAT
BINARY FLOAT
data type.public static final DataType BINARY_DOUBLE
BINARY DOUBLE
data type.public static final DataType FLOAT
FLOAT
data type.public static final DataType INTEGER
INTEGER
data type.public static final DataType DECIMAL
DECIMAL
data type.public static final DataType CHAR
CHAR
data type.public static final DataType NCHAR
NCHAR
data type.public static final DataType VARCHAR2
VARCHAR2
data type.public static final DataType NVARCHAR2
NVARCHAR2
data type.public static final DataType CLOB
CLOB
data type.public static final DataType NCLOB
NCLOB
data type.public static final DataType DATE
DATE
data type.public static final DataType TIMESTAMP
TIMESTAMP
data type.public static final DataType TIMESTAMP_WITH_LOCAL_TIME_ZONE
TIMESTAMP WITH LOCAL TIME ZONE
data type.public static final DataType TIMESTAMP_WITH_TIME_ZONE
TIMESTAMP WITH TIME ZONE
data type.public static final DataType YM_INTERVAL
INTERVAL YEAR TO MONTH
data type.public static final DataType DS_INTERVAL
INTERVAL DAY TO SECOND
data type.public static final DataType RAW
RAW
data type.public static final DataType LONG
LONG
data type.public static final DataType ROWID
ROWID
data type.public static final DataType LOB
LOB
data type.public static final DataType BLOB
BLOB
data type.public static final DataType XMLTYPE
XMLTYPE
data type.public static final DataType XMLFORMAT
XMLFormat
data type.public static final DataType[] LITERAL_DATA_TYPES
Method Detail |
---|
public final java.lang.String getName()
DataType
.String
that contains the name of this DataType
.public boolean matchesCategory(int category)
DataType
matches the specified category.category
- One of the category constants of this class, such as DataType.NUMBER_CATEGORY
.boolean
that is true
if the specified categroy matches the category of this DataType
or is false
otherwise.public static final DataType getDataType(java.lang.String name)
DataType
that has the specified name.name
- A String
that contains the name of a DataType
, such as TIMESTAMP
.DataType
with the specified name.public final SQLDataType toSQLDataType()
SQLDataType
for this DataType
.SQLDataType
for this DataType
.
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |